Skip to content

Commit d4d712c

Browse files
authored
Update evnotipi.py
1 parent f58bb2c commit d4d712c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evnotipi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def exit_gracefully(signum, frame):
116116
settings = s
117117

118118
if s['soc'] != socThreshold:
119-
socThreshold = int(s['soc'])
119+
socThreshold = int(s['soc']) if s['soc'] else 100
120120
print("New notification threshold: {}".format(socThreshold))
121121

122122
except EVNotify.CommunicationError:

0 commit comments

Comments
 (0)