mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
alc == 0.0 on error
This commit is contained in:
parent
b2fd28f89a
commit
4d47aaecde
1 changed files with 3 additions and 2 deletions
|
@ -259,9 +259,10 @@ class radio:
|
|||
alc = float(alc)
|
||||
if alc != 0.0:
|
||||
self.alc = alc
|
||||
|
||||
else:
|
||||
self.alc = 0.0
|
||||
except ValueError:
|
||||
self.alc = str(alc)
|
||||
self.alc = 0.0
|
||||
|
||||
return self.alc
|
||||
except Exception:
|
||||
|
|
Loading…
Reference in a new issue