commit 05162a899d527c041173bff18f22afcd2b07d502 Author: cypherpunks cypherpunks@torproject.org Date: Fri Nov 4 10:42:02 2016 +0000
Use the new style of catching exceptions --- docs/_static/example/reading_twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/_static/example/reading_twitter.py b/docs/_static/example/reading_twitter.py index 28f840d..7f9094b 100644 --- a/docs/_static/example/reading_twitter.py +++ b/docs/_static/example/reading_twitter.py @@ -81,7 +81,7 @@ try: print("%i. %s" % (index + 1, tweet["created_at"])) print(tweet["text"]) print("") -except IOError, exc: +except IOError as exc: print(exc) finally: tor_process.kill() # stops tor
tor-commits@lists.torproject.org