8000 keep the original raise so the stack trace has the original error · ptarjan/python-oauth@a17f323 · GitHub
[go: up one dir, main page]

Skip to content

Commit a17f323

Browse files
committed
keep the original raise so the stack trace has the original error
1 parent a4f2ff0 commit a17f323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def urlopen(self, url, user, *args, **kwargs):
6060
if error.find("permission_denied") != -1:
6161
raise PermissionException("Permission denied. Probably revoked OAuth: %s" % url)
6262
why.msg += "\n%s\n%s\n%s" % (url, why.headers, "".join(why.readlines()))
63-
raise why
63+
raise
6464

6565
return response
6666

@@ -127,5 +127,5 @@ def fetch(self, url, user, tries=1, *args, **kwargs):
127127
return self.urlopen(self.sign_url(url, user), user, *args, **kwargs)
128128
except RefreshException, why:
129129
if tries == 0:
130-
raise why
130+
raise
131131
return self.fetch(url, user, tries=tries-1, *args, **kwargs)

0 commit comments

Comments
 (0)
0