Fixes truthy conditional

This commit is contained in:
dlee 2023-02-14 11:21:57 -06:00
parent c7ba8980a8
commit 19e58f19ca
2 changed files with 2 additions and 1 deletions

1
newsfragments/3975.minor Normal file
View File

@ -0,0 +1 @@
Fixes truthy conditional in status.py

View File

@ -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: