Skip to content

Commit 4f6af1f

Browse files
tarilabsvsoch
andcommitted
implement code review feedback
Signed-off-by: tarilabs <matteo.mortari@gmail.com> Co-authored-by: Vanessasaurus <814322+vsoch@users.noreply.github.com>
1 parent dce2be3 commit 4f6af1f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

oras/decorator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ def inner(*args, **kwargs):
5252
return res
5353
except oras.auth.AuthenticationException as e:
5454
raise e
55-
except requests.exceptions.SSLError:
55+
except (requests.exceptions.SSLError, ImportError):
5656
raise
57-
except ImportError as e:
58-
raise e
5957
except Exception as e:
6058
sleep = timeout + 3**attempt
6159
logger.info(f"Retrying in {sleep} seconds - error: {e}")

0 commit comments

Comments
 (0)