Skip to content

Commit

Permalink
Resolves issue #712 (#713)
Browse files Browse the repository at this point in the history
Thanks very much!
  • Loading branch information
Elhossein authored Jul 6, 2023
1 parent 2bfc089 commit bd9d3ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sarracenia/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ def durationToSeconds(str_value, default=None) -> float:

if type(str_value) in [int, float]:
return str_value

if type(str_value) is not str:
return 0

if str_value.lower() in [ 'none', 'off', 'false' ]:
return 0
Expand Down

0 comments on commit bd9d3ff

Please sign in to comment.