X Tutup
Skip to content

Commit b2edc30

Browse files
committed
fix python v3 exception statement error
1 parent a382b7d commit b2edc30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def testTwitterError(self):
3333
# Manually try/catch so we can check the exception's value
3434
try:
3535
self._api.GetUserTimeline()
36-
except twitter.TwitterError, error:
36+
except twitter.TwitterError as error:
3737
# If the error message matches, the test passes
3838
self.assertEqual('test error', error.message)
3939
else:

0 commit comments

Comments
 (0)
X Tutup