alc == 0.0 on error

This commit is contained in:
DJ2LS 2023-02-01 13:47:24 +01:00
parent b2fd28f89a
commit 4d47aaecde

View file

@ -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: