Skip to content

Commit

Permalink
remove error details
Browse files Browse the repository at this point in the history
  • Loading branch information
FuHsinyu committed Jul 8, 2024
1 parent 82d5246 commit 6c18910
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def save_settings(settings, flash_msg):
with open(config_file_path, 'w') as file:
json.dump(settings, file)
flash(flash_msg, 'success')
except IOError as e:
flash(f"Failed to save settings: {str(e)}", "danger")
return f"Failed to save settings: {e}", 500
except IOError:
flash(f"Failed to save settings", "danger")
return f"Failed to save settings", 500

return redirect(url_for('admin_bp.index'))

0 comments on commit 6c18910

Please sign in to comment.