Catch all SubprocessError and OSError when converting report
The subprocess run may raises one of those exceptions. Closes #15141 (grafted from 2dfbdcb8e6969bbf8d2021dab131386974cc5515) --HG-- branch : 8.0
This commit is contained in:
1 parent
24f805356d
commit
ca1a608c13
1 file changed
+1
-1
@@ -464,7 +464,7 @@ class Report(URLMixin, PoolBase):
|
||||
time.sleep(0.02 * (retry - count))
|
||||
try:
|
||||
subprocess.run(args, timeout=timeout, check=True)
|
||||
except subprocess.CalledProcessError:
|
||||
except (subprocess.SubprocessError, OSError):
|
||||
if count:
|
||||
continue
|
||||
logger.error(
|
||||
|
||||
Reference in new issue
Block a user