From f9398564cdd964a0c26bcd3d8f1b2654e7999bd2 Mon Sep 17 00:00:00 2001 From: "Bankde@hotmail.com" Date: Wed, 5 Jul 2017 09:18:13 +0700 Subject: [PATCH] replace FileNotFoundError with IOError so it can work in Py2 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 07f5657..3ce1c77 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ with open('README.rst') as f: try: requirements = [line.rstrip('\n') for line in open(os.path.join('fbchat.egg-info', 'requires.txt'))] -except FileNotFoundError: +except IOError: requirements = [line.rstrip('\n') for line in open('requirements.txt')] version = None