If your event_log is empty, finish (don't fail) with more helpful message

(imported from commit b08e8fc32438fba16fbe1c3f01afc99a1b62d583)
This commit is contained in:
acrefoot 2013-07-02 17:55:21 -04:00 committed by Michael McCanna
parent 71dec63ad1
commit b6bd54b350
1 changed files with 4 additions and 0 deletions

View File

@ -497,6 +497,10 @@ def restore_saved_messages():
for message in all_messages:
messages_by_id[message.id] = message
if len(messages_by_id) == 0:
print datetime.datetime.now(), "No old messages to replay"
return
if first_message_id is None:
first_message_id = min(messages_by_id.keys())