From 2a184b5853fc1f09d0a7a6db4c0a861a15f60521 Mon Sep 17 00:00:00 2001 From: David Trail Date: Tue, 16 Sep 2014 11:35:49 +0100 Subject: [PATCH] No FileNotFoundError on Python 3 --- shreddit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shreddit.py b/shreddit.py index 85360a6..9bfac86 100755 --- a/shreddit.py +++ b/shreddit.py @@ -25,7 +25,7 @@ except ImportError: def get_sentence(): return ' '.join(words[:randint(50, 150)]) - except FileNotFoundError: + except IOError: def get_sentence(): return '''I have been Shreddited for privacy!\n\n\ https://github.com/x89/Shreddit/'''