0003-trivial-fix-pylint-duplicate-except-warning-52732.patch
pylint.rc | ||
---|---|---|
18 | 18 |
deprecated-module, |
19 | 19 |
disallowed-name, |
20 | 20 |
duplicate-code, |
21 |
duplicate-except, |
|
22 | 21 |
eval-used, |
23 | 22 |
exec-used, |
24 | 23 |
fixme, |
wcs/publisher.py | ||
---|---|---|
18 | 18 |
import os |
19 | 19 |
import pickle |
20 | 20 |
import re |
21 |
import socket |
|
22 | 21 |
import sys |
23 | 22 |
import traceback |
24 | 23 |
import zipfile |
... | ... | |
381 | 380 |
return |
382 | 381 |
try: |
383 | 382 |
self.logger.log_internal_error(error_summary, plain_error_msg, tech_id) |
384 |
except socket.error: |
|
385 |
# will happen if there is no mail server available and exceptions |
|
386 |
# were configured to be mailed. |
|
387 |
pass |
|
388 | 383 |
except OSError: |
389 |
# this could happen on file descriptor exhaustion |
|
384 |
# Could happen if there is no mail server available and exceptions |
|
385 |
# were configured to be mailed. (formerly socket.error) |
|
386 |
# Could also could happen on file descriptor exhaustion. |
|
390 | 387 |
pass |
391 | 388 | |
392 | 389 |
def record_error(self, *args, **kwargs): |
393 |
- |