fix insertion upload check when daemon is not running

This commit is contained in:
Kevin Froman 2019-11-27 13:53:06 -06:00
parent 00baf30141
commit f401518d24

View File

@ -41,8 +41,12 @@ def _check_upload_queue():
"""
max_upload_queue: int = 5000
queue = localcommand.local_command('/gethidden', maxWait=10)
up_queue = len(queue.splitlines())
try:
up_queue = len(queue.splitlines())
except AttributeError:
pass
else:
if up_queue >= max_upload_queue:
raise OverflowError
return up_queue