Greatly improve the handling of working with different DC

This commit is contained in:
Lonami Exo
2017-03-20 12:23:53 +01:00
parent 6b1dc30045
commit 628b7391e3
2 changed files with 19 additions and 16 deletions

View File

@@ -328,7 +328,7 @@ class MtProtoSender:
error.additional_data))
sleep(error.additional_data)
elif error.message.startswith('PHONE_MIGRATE_'):
elif '_MIGRATE_' in error.message:
raise InvalidDCError(error.additional_data)
else: