trivial: fix pylint duplicate-except warning (#52732)

This commit is contained in:
Frédéric Péters 2021-04-02 22:36:28 +02:00
parent fc780d27a7
commit 6e1e665417
2 changed files with 3 additions and 7 deletions

View File

@ -18,7 +18,6 @@ disable=
deprecated-module,
disallowed-name,
duplicate-code,
duplicate-except,
eval-used,
exec-used,
fixme,

View File

@ -18,7 +18,6 @@ import json
import os
import pickle
import re
import socket
import sys
import traceback
import zipfile
@ -381,12 +380,10 @@ class WcsPublisher(StubWcsPublisher):
return
try:
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:
# 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
def record_error(self, *args, **kwargs):