Skip to content

Commit 73ba728

Browse files
committed
no retry
1 parent 8d7e59c commit 73ba728

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

asyncsnmplib/v3/protocol.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,16 @@ async def _send_encrypted(
102102

103103
async def send_encrypted(self, pkg, auth_proto, auth_key, priv_proto,
104104
priv_key):
105-
err = SnmpTimeoutError
106105
for attempt, timeout in enumerate(self._timeouts):
107106
try:
108107
res = await self._send_encrypted(
109108
pkg, auth_proto, auth_key, priv_proto, priv_key, timeout)
110109
except SnmpTimeoutError:
111110
pass
112-
except SnmpAuthV3Exception as e:
113-
err = e # wins over timeout exception
114111
except Exception as e:
115112
raise e
116113
else:
117114
break
118115
else:
119-
raise err
116+
raise SnmpTimeoutError
120117
return res

asyncsnmplib/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.7'
1+
__version__ = '1.0.8'

0 commit comments

Comments
 (0)