mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Promote messagebox warnings to errors
No point in making a warning if it immediately is raised.
This commit is contained in:
parent
a8ce308b7a
commit
59ffad0090
|
@ -631,7 +631,7 @@ class MessageBox:
|
||||||
secret = ENTRY_SECRET in self.getting_diff_for
|
secret = ENTRY_SECRET in self.getting_diff_for
|
||||||
|
|
||||||
if not account and not secret:
|
if not account and not secret:
|
||||||
raise RuntimeWarning('Should not be applying the difference when neither account or secret was diff was active')
|
raise RuntimeError('Should not be applying the difference when neither account or secret was diff was active')
|
||||||
|
|
||||||
# Both may be active if both expired at the same time.
|
# Both may be active if both expired at the same time.
|
||||||
if account:
|
if account:
|
||||||
|
@ -677,7 +677,7 @@ class MessageBox:
|
||||||
secret = ENTRY_SECRET in self.getting_diff_for
|
secret = ENTRY_SECRET in self.getting_diff_for
|
||||||
|
|
||||||
if not account and not secret:
|
if not account and not secret:
|
||||||
raise RuntimeWarning('Should not be ending get difference when neither account or secret was diff was active')
|
raise RuntimeError('Should not be ending get difference when neither account or secret was diff was active')
|
||||||
|
|
||||||
# Both may be active if both expired at the same time.
|
# Both may be active if both expired at the same time.
|
||||||
if account:
|
if account:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user