trivial: fix pylint duplicate-except warning (#52732)
This commit is contained in:
parent
fc780d27a7
commit
6e1e665417
|
@ -18,7 +18,6 @@ disable=
|
||||||
deprecated-module,
|
deprecated-module,
|
||||||
disallowed-name,
|
disallowed-name,
|
||||||
duplicate-code,
|
duplicate-code,
|
||||||
duplicate-except,
|
|
||||||
eval-used,
|
eval-used,
|
||||||
exec-used,
|
exec-used,
|
||||||
fixme,
|
fixme,
|
||||||
|
|
|
@ -18,7 +18,6 @@ import json
|
||||||
import os
|
import os
|
||||||
import pickle
|
import pickle
|
||||||
import re
|
import re
|
||||||
import socket
|
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import zipfile
|
import zipfile
|
||||||
|
@ -381,12 +380,10 @@ class WcsPublisher(StubWcsPublisher):
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
self.logger.log_internal_error(error_summary, plain_error_msg, tech_id)
|
self.logger.log_internal_error(error_summary, plain_error_msg, tech_id)
|
||||||
except socket.error:
|
|
||||||
# will happen if there is no mail server available and exceptions
|
|
||||||
# were configured to be mailed.
|
|
||||||
pass
|
|
||||||
except OSError:
|
except OSError:
|
||||||
# this could happen on file descriptor exhaustion
|
# Could happen if there is no mail server available and exceptions
|
||||||
|
# were configured to be mailed. (formerly socket.error)
|
||||||
|
# Could also could happen on file descriptor exhaustion.
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def record_error(self, *args, **kwargs):
|
def record_error(self, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue