| ValueError | Python 3.6.14: /usr/bin/python3 Tue May 20 17:17:01 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /usr/lib/cgi-bin/get_compass.py in <module>() |
| 81 degrees = 0 |
| 82 |
| => 83 degrees = float(degrees) |
| 84 |
| 85 if degrees < -360 or degrees > 360: |
| degrees = "' ad '", builtin float = <class 'float'> |
ValueError: could not convert string to float: "' ad '"
args =
('could not convert string to float: "\' ad \'"',)
with_traceback =
<built-in method with_traceback of ValueError object>