MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / safe_int

Function safe_int

device.py:84–88  ·  view source on GitHub ↗
(value: str, error_message: str)

Source from the content-addressed store, hash-verified

82 return properties[group][key] == "true"
83
84def safe_int(value: str, error_message: str):
85 try:
86 return int(value)
87 except ValueError:
88 exit_with_error(error_message)
89
90def safe_float(value: str, error_message: str):
91 try:

Callers 1

write_lvgl_variablesFunction · 0.85

Calls 1

exit_with_errorFunction · 0.70

Tested by

no test coverage detected