Skip to content

Commit 628e26a

Browse files
author
bspkrs
committed
attempt to handle the exception generically
1 parent 842e442 commit 628e26a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MavenHandler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def upload(cls, maven_url, maven_user, maven_pass, artifact_name, local_path='',
5454
def do_put(cls, url, auth, data, logger=None):
5555
try:
5656
r = requests.put(url, auth=auth, data=data)
57-
except requests.ConnectTimeout as e:
58-
return e.response.status_code
57+
except:
58+
return 1
5959
return r.status_code
6060

6161

0 commit comments

Comments
 (0)