fix: remove trailing comma in hotspot POST — was returning (Response, None) tuple

This commit is contained in:
Mathieu Moran
2026-08-12 05:24:02 -04:00
parent 336815b49c
commit a7ea97259d
+1 -1
View File
@@ -180,7 +180,7 @@ def hotspot_config_update():
) )
return jsonify(message=f"Hotspot SSID updated to '{ssid}'." return jsonify(message=f"Hotspot SSID updated to '{ssid}'."
+ (" Password saved." if password else "") + (" Password saved." if password else "")
+ " Restart hotspot or device to apply."), + " Restart hotspot or device to apply.")
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
return jsonify(error=f"Could not update hotspot: {e.stderr.strip() or 'nmcli failed'}"), 500 return jsonify(error=f"Could not update hotspot: {e.stderr.strip() or 'nmcli failed'}"), 500