@@ -118,7 +118,7 @@ def __init__(self, host, meta):
118
118
#Store version as triple and check dev flag
119
119
self .version = meta .get ("version" , None )
120
120
if not self .version :
121
- raise ShotgunError ("The Shotgun Server didn't respond with a version number. "
121
+ raise ShotgunError ("The Shotgun Server didn't respond with a version number. "
122
122
"This may be because you are running an older version of "
123
123
"Shotgun against a more recent version of the Shotgun API. "
124
124
"For more information, please contact the Shotgun Support." )
@@ -1081,14 +1081,20 @@ def authenticate_human_user(self, user_login, user_password):
1081
1081
return data
1082
1082
else :
1083
1083
None
1084
- # Set back to default
1084
+ # Set back to default - There finally and except cannot be used together in python2.4
1085
1085
self .config .user_login = None
1086
1086
self .config .user_password = None
1087
-
1088
1087
except Fault :
1089
- # Set back to default
1088
+ # Set back to default - There finally and except cannot be used together in python2.4
1089
+ self .config .user_login = None
1090
+ self .config .user_password = None
1091
+ except :
1092
+ # Set back to default - There finally and except cannot be used together in python2.4
1090
1093
self .config .user_login = None
1091
1094
self .config .user_password = None
1095
+ raise
1096
+
1097
+
1092
1098
1093
1099
1094
1100
def _get_session_token (self ):
@@ -1112,11 +1118,11 @@ def _build_opener(self, handler):
1112
1118
# handle proxy auth
1113
1119
if self .config .proxy_user and self .config .proxy_pass :
1114
1120
auth_string = "%s:%s@" % (self .config .proxy_user , self .config .proxy_pass )
1115
- else :
1121
+ else :
1116
1122
auth_string = ""
1117
1123
proxy_addr = "http://%s%s:%d" % (auth_string , self .config .proxy_server , self .config .proxy_port )
1118
1124
proxy_support = urllib2 .ProxyHandler ({self .config .scheme : proxy_addr })
1119
-
1125
+
1120
1126
opener = urllib2 .build_opener (proxy_support , handler )
1121
1127
else :
1122
1128
opener = urllib2 .build_opener (handler )
0 commit comments