fix insertion upload check when daemon is not running
parent
00baf30141
commit
f401518d24
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue