mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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):
|
if not os.WIFEXITED(exit_code):
|
||||||
try:
|
try:
|
||||||
status_message = json.loads(status)['msg']
|
status_message = json.loads(status)['msg']
|
||||||
|
raise Exception(status_message)
|
||||||
except (KeyError, json.JSONDecodeError):
|
except (KeyError, json.JSONDecodeError):
|
||||||
pass
|
raise Exception(status)
|
||||||
|
|
||||||
raise Exception(status)
|
|
||||||
|
|
||||||
|
|
||||||
@privileged
|
@privileged
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user