mirror of
https://github.com/rembo10/headphones.git
synced 2026-04-04 03:59:26 +01:00
Merge pull request #3016 from noam09/develop
Deluge WebUI daemons - fix #3010
This commit is contained in:
@@ -379,7 +379,8 @@ def _get_auth():
|
||||
return None
|
||||
|
||||
delugeweb_hosts = json.loads(response.text)['result']
|
||||
if len(delugeweb_hosts) == 0:
|
||||
# Check if delugeweb_hosts is None before checking its length
|
||||
if not delugeweb_hosts or len(delugeweb_hosts) == 0:
|
||||
logger.error('Deluge: WebUI does not contain daemons')
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user