Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit b2edc30

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)