mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
miniflux: Fix error handling for reset password
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
parent
2f3e586eb6
commit
81e1b0d9cf
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user