bugfix sythax-error

This commit is contained in:
oberon 2026-02-19 13:58:26 +01:00
parent d0453dbcb9
commit a69b8e4990
2 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@ -210,8 +210,11 @@ def admin_create_theme():
} }
with open(path, 'w', encoding='utf-8') as f: with open(path, 'w', encoding='utf-8') as f:
json.dump(template, f, ensure_ascii=False, indent=2) json.dump(template, f, ensure_ascii=False, indent=2)
logger.info(f"Neues Theme angelegt: {os.path.relpath(path, base_dir)}") logger.info(f"Neues Theme angelegt: {os.path.relpath(path, base_dir)}")
return jsonify({"success": True, "path": os.path.relpath(path, base_dir)}) return jsonify({"success": True, "path": os.path.relpath(path, base_dir)})
except Exception as e:
logger.exception("create_theme fehlgeschlagen")
return jsonify({"success": False, "message": str(e)}), 500
@admin_bp.route('/set_default_theme', methods=['POST']) @admin_bp.route('/set_default_theme', methods=['POST'])
@ -227,6 +230,3 @@ def admin_set_default_theme():
except Exception as e: except Exception as e:
logger.exception("Default-Theme setzen fehlgeschlagen") logger.exception("Default-Theme setzen fehlgeschlagen")
return jsonify({"success": False, "message": str(e)}), 500 return jsonify({"success": False, "message": str(e)}), 500
except Exception as e:
logger.exception("create_theme fehlgeschlagen")
return jsonify({"success": False, "message": str(e)}), 500