mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-18 02:40:07 +00:00
Fixes truthy conditional
This commit is contained in:
parent
c7ba8980a8
commit
19e58f19ca
1
newsfragments/3975.minor
Normal file
1
newsfragments/3975.minor
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fixes truthy conditional in status.py
|
@ -550,7 +550,7 @@ class DownloadStatusElement(Element):
|
|||||||
length = r_ev["length"]
|
length = r_ev["length"]
|
||||||
bytes_returned = r_ev["bytes_returned"]
|
bytes_returned = r_ev["bytes_returned"]
|
||||||
decrypt_time = ""
|
decrypt_time = ""
|
||||||
if bytes:
|
if bytes_returned is not None:
|
||||||
decrypt_time = self._rate_and_time(bytes_returned, r_ev["decrypt_time"])
|
decrypt_time = self._rate_and_time(bytes_returned, r_ev["decrypt_time"])
|
||||||
speed, rtt = "",""
|
speed, rtt = "",""
|
||||||
if r_ev["finish_time"] is not None:
|
if r_ev["finish_time"] is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user