have calc_ratio return 0 on exception instead of -1
This commit is contained in:
parent
a40b8e4d50
commit
c1d3d7ea81
|
@ -723,7 +723,7 @@ class Manager:
|
|||
try:
|
||||
ret = float(up/down)
|
||||
except:
|
||||
ret = -1
|
||||
ret = 0
|
||||
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Reference in New Issue