2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 12:57:52 +00:00

Raise any other unknown exception

This commit is contained in:
Dan 2018-04-12 08:30:52 +02:00
parent 862567a1ed
commit 552474a0e2

View File

@ -159,6 +159,9 @@ class Session:
log.info("Connection inited: Layer {}".format(layer))
except (OSError, TimeoutError, Error):
self.stop()
except Exception as e:
self.stop()
raise e
else:
break