mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Fixing error when timeout was None.
This commit is contained in:
parent
3894b2ba41
commit
089faa2b76
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue