miniflux: Fix error handling for reset password

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Joseph Nuthalapati committed 2024-07-25 22:41:33 +05:30
1 parent 2f3e586eb6
commit 81e1b0d9cf
1 file changed
+2 -3
+2 -3
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