Skip to content

Commit a7d430b

Browse files
committed
removed finally statement to fix python 2.4 compatibility
1 parent a21c6da commit a7d430b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shotgun_api3/shotgun.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,15 +1076,16 @@ def authenticate_human_user(self, user_login, user_password):
10761076
return data
10771077
else:
10781078
None
1079+
# Set back to default
1080+
self.config.user_login = None
1081+
self.config.user_password = None
10791082

10801083
except Fault:
1081-
pass
1082-
1083-
finally:
10841084
# Set back to default
10851085
self.config.user_login = None
10861086
self.config.user_password = None
10871087

1088+
10881089
def _get_session_token(self):
10891090
"""Hack to authenticate in order to download protected content
10901091
like Attachments

0 commit comments

Comments
 (0)