From 089faa2b76a5d4128d162293c4858414bc584b05 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 15 Jun 2022 09:41:19 -0600 Subject: [PATCH] Fixing error when timeout was None. --- wrolpi/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrolpi/downloader.py b/wrolpi/downloader.py index a5a05254..b8afb366 100644 --- a/wrolpi/downloader.py +++ b/wrolpi/downloader.py @@ -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: