Error logs in production KeyError: 'edittime'
community solutions in production spams this, many times a second.
2019-12-16T05:19:56.650 INFO [community-solutions] Exception in thread Thread-16:
2019-12-16T05:19:56.650 INFO [community-solutions] Traceback (most recent call last):
2019-12-16T05:19:56.650 INFO [community-solutions] File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
2019-12-16T05:19:56.650 INFO [community-solutions] self.run()
2019-12-16T05:19:56.650 INFO [community-solutions] File "/usr/lib/python3.7/threading.py", line 865, in run
2019-12-16T05:19:56.650 INFO [community-solutions] self._target(*self._args, **self._kwargs)
2019-12-16T05:19:56.650 INFO [community-solutions] File "/app/dbmigrations.py", line 438, in do_cleanup
2019-12-16T05:19:56.650 INFO [community-solutions] cln(mongo_db)
2019-12-16T05:19:56.650 INFO [community-solutions] File "/app/dbmigrations.py", line 313, in clean_up_empty_answers
2019-12-16T05:19:56.650 INFO [community-solutions] edited = server.parse_iso_datetime(answer["edittime"])
2019-12-16T05:19:56.650 INFO [community-solutions] KeyError: 'edittime'
2019-12-16T05:19:56.650 INFO [community-solutions] Clean up empty answers
2019-12-16T05:19:56.650 INFO [community-solutions] Exception in thread Thread-17:
2019-12-16T05:19:56.650 INFO [community-solutions] Traceback (most recent call last):
2019-12-16T05:19:56.650 INFO [community-solutions] File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
2019-12-16T05:19:56.650 INFO [community-solutions] self.run()
2019-12-16T05:19:56.650 INFO [community-solutions] File "/usr/lib/python3.7/threading.py", line 865, in run
2019-12-16T05:19:56.650 INFO [community-solutions] self._target(*self._args, **self._kwargs)
2019-12-16T05:19:56.650 INFO [community-solutions] File "/app/dbmigrations.py", line 438, in do_cleanup
2019-12-16T05:19:56.650 INFO [community-solutions] cln(mongo_db
2019-12-16T05:19:56.650 INFO [community-solutions] )
2019-12-16T05:19:56.650 INFO [community-solutions] File "/app/dbmigrations.py", line 313, in clean_up_empty_answers
2019-12-16T05:19:56.650 INFO [community-solutions] edited = server.parse_iso_datetime(answer["edittime"])
2019-12-16T05:19:56.650 INFO [community-solutions] KeyError: 'edittime'