mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-23 01:46:14 +00:00
fix none value
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ CONFIG_FILENAME = "config.ini"
|
||||
def set_number(value):
|
||||
try:
|
||||
return float(value)
|
||||
except ValueError:
|
||||
except (ValueError, TypeError):
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user