diff --git a/fdb_spider_interface.py b/fdb_spider_interface.py index 8753632..901d543 100644 --- a/fdb_spider_interface.py +++ b/fdb_spider_interface.py @@ -655,10 +655,14 @@ if __name__ == '__main__': now = datetime.datetime.now() now_formatted = dateutil.parser.parse(str(now)) - delta = period_data_formatted - now_formatted - - print('delta', delta, int(delta.days)) - if message_was_already_there == False and int(delta.days) < int(room_deadline_days): + try: + delta = period_data_formatted - now_formatted + days_to_check = delta.days + except Exception as e: + days_to_check = int(room_deadline_days) - 1 + print('calc of delta did now work, original error is:', e) + #print('delta', delta, int(delta.days)) + if message_was_already_there == False and int(days_to_check) < int(room_deadline_days): diff --git a/new_message_file.txt b/new_message_file.txt index 932bb39..0c858c8 100644 --- a/new_message_file.txt +++ b/new_message_file.txt @@ -1 +1 @@ -updaterooms 65afc67d7954218b50162c22§%§%kr2Qt7t4a3dNCDYqm \ No newline at end of file +updaterooms 65afd8b77954218b501634f2§%§%Z4SCmA6Ydbs7YHHHo \ No newline at end of file diff --git a/roomhistories/65afd8b77954218b501634f2.txt b/roomhistories/65afd8b77954218b501634f2.txt new file mode 100644 index 0000000..e69de29