Commit 490bba63 by lrnzcig

python 2.x compatibility

raise from construct is only valid in python 3
parent e28a5734
......@@ -230,7 +230,7 @@ def credsfromfile(creds_file=None, subdir=None, verbose=False):
except KeyError:
print("Supply a value to the 'subdir' parameter or set the \
TWITTER environment variable.")
raise FileNotFoundError from KeyError
raise KeyError
with open(creds_fullpath) as infile:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment