miniflux: Fix error handling for reset password

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Joseph Nuthalapati 2024-07-25 22:41:33 +05:30
parent 2f3e586eb6
commit 81e1b0d9cf
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -104,10 +104,9 @@ def reset_user_password(username: str, password: str):
if not os.WIFEXITED(exit_code):
try:
status_message = json.loads(status)['msg']
raise Exception(status_message)
except (KeyError, json.JSONDecodeError):
pass
raise Exception(status)
raise Exception(status)
@privileged