Fixing error when timeout was None.

This commit is contained in:
Roland 2022-06-15 09:41:19 -06:00
parent 3894b2ba41
commit 089faa2b76
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -204,7 +204,7 @@ class Downloader:
# A timeout of 0 means the download will never be killed.
if timeout is None:
timeout = self.timeout
if WROLPI_CONFIG.download_timeout and timeout > WROLPI_CONFIG.download_timeout:
if WROLPI_CONFIG.download_timeout and timeout and timeout > WROLPI_CONFIG.download_timeout:
timeout = WROLPI_CONFIG.download_timeout
try: