Promote messagebox warnings to errors

No point in making a warning if it immediately is raised.
This commit is contained in:
Lonami Exo 2022-12-18 12:42:14 +01:00
parent a8ce308b7a
commit 59ffad0090

View File

@ -631,7 +631,7 @@ class MessageBox:
secret = ENTRY_SECRET in self.getting_diff_for
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.
if account:
@ -677,7 +677,7 @@ class MessageBox:
secret = ENTRY_SECRET in self.getting_diff_for
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.
if account: