mirror of https://github.com/zulip/zulip.git
If your event_log is empty, finish (don't fail) with more helpful message
(imported from commit b08e8fc32438fba16fbe1c3f01afc99a1b62d583)
This commit is contained in:
parent
71dec63ad1
commit
b6bd54b350
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in New Issue