Skip to content

Commit 280ecb9

Browse files
committed
Added error 104 for resetting user agent
1 parent e473f1e commit 280ecb9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymyq/request.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,10 @@ async def _send_request(
171171
await self._get_useragent()
172172

173173
except ClientError as err:
174-
if err.errno == 54 and attempt == 0:
174+
if err.errno in (54, 104) and attempt == 0:
175175
_LOGGER.debug(
176-
"Received error status 54, connection reset. Will refresh user agent."
176+
"Received error status %s, connection reset. Will refresh user agent.",
177+
err.errno,
177178
)
178179
await self._get_useragent()
179180
else:

0 commit comments

Comments
 (0)