Add more errors, change the way InvalidDC is created

This commit is contained in:
Lonami Exo
2017-05-20 15:25:07 +02:00
parent befc7a5657
commit fb9104417e
2 changed files with 21 additions and 8 deletions

View File

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