-
Notifications
You must be signed in to change notification settings - Fork 986
Open
Description
Line 305 in 82a43db
| self.unit[:-1] if self.interval == 1 else self.unit, |
-
If
self.interval == 1is True, and,self.unitis None (which is what its being initialized to here) :Line 232 in 3863eff
self.unit: Optional[str] = None
It results in crash. -
The code should guard against
self.unitbeing None before attemptingself.unit[:-1]
Metadata
Metadata
Assignees
Labels
No labels