mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Fix some exception handling.
This commit is contained in:
parent
7a5cad1a31
commit
857e9e9d1c
3 changed files with 45 additions and 32 deletions
|
@ -115,10 +115,13 @@ def convert_milliseconds(ms):
|
|||
|
||||
def convert_milliseconds_to_minutes(ms):
|
||||
|
||||
seconds = float(ms) / 1000
|
||||
minutes = round(seconds / 60, 0)
|
||||
if ms.isdigit():
|
||||
seconds = float(ms) / 1000
|
||||
minutes = round(seconds / 60, 0)
|
||||
|
||||
return math.trunc(minutes)
|
||||
return math.trunc(minutes)
|
||||
|
||||
return 0
|
||||
|
||||
def convert_seconds(s):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue