We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b18dc0 + 9b50dea commit 9d91a44Copy full SHA for 9d91a44
1 file changed
kobo/conf.py
@@ -27,6 +27,7 @@
27
import fnmatch
28
import itertools
29
import keyword
30
+import sys
31
import token
32
import tokenize
33
from cStringIO import StringIO
@@ -334,5 +335,6 @@ def _get_tuple(self):
334
335
try:
336
settings = PyConfigParser()
337
settings.load_from_file(os.environ.get("PROJECT_CONFIG_FILE"))
- except Exception, ex:
338
+ except Exception:
339
+ ex = sys.exc_info()[1]
340
raise ImproperlyConfigured("Could not load config file: %s" % ex)
0 commit comments