Skip to content

Commit 8f77623

Browse files
COmanage utils: add 401 to error codes to not retry
Also remove old commented out version
1 parent 1a68819 commit 8f77623

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

comanage_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
MAX_ATTEMPTS = 5
3232

3333
# HTTP return codes we shouldn't attempt to retry
34-
#HTTP_NO_RETRY_CODES = {403, 404, 405, 500}
35-
HTTP_NO_RETRY_CODES = {404, 405, 500}
34+
HTTP_NO_RETRY_CODES = {401, 404, 405, 500}
3635

3736
GET = "GET"
3837
PUT = "PUT"

0 commit comments

Comments
 (0)