spoolman: fix exception handling
Make sure the connection delay isn't skipped if the error list is full. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
67c98f6a76
commit
65a8271925
|
@ -129,9 +129,8 @@ class SpoolManager:
|
|||
except asyncio.CancelledError:
|
||||
raise
|
||||
except Exception as e:
|
||||
if len(err_list) > 10:
|
||||
if len(err_list) < 10:
|
||||
# Allow up to 10 unique errors.
|
||||
continue
|
||||
for err in err_list:
|
||||
if type(err) is type(e) and err.args == e.args:
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue