Improved connection error management
This commit is contained in:
@@ -581,9 +581,13 @@ class EpsonPrinter:
|
||||
return self.mib_dict[mib]
|
||||
if not self.hostname:
|
||||
return None, False
|
||||
try:
|
||||
utt = UdpTransportTarget(
|
||||
(self.hostname, self.port),
|
||||
)
|
||||
except Exception as e:
|
||||
logging.critical("snmp_mib invalid address: %s", e)
|
||||
quit(3)
|
||||
if self.timeout is not None:
|
||||
utt.timeout = self.timeout
|
||||
if self.retries is not None:
|
||||
|
||||
Reference in New Issue
Block a user