summaryrefslogtreecommitdiff
path: root/examples/eval_expr.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-01-18 17:24:40 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-01-18 17:47:02 +0100
commit33b5e1aef6fbfc61385d31c75c151e24cf3ff5bc (patch)
treeb7931ecce53171de01baa6bf805b48c71a9d741b /examples/eval_expr.py
parent8574dc519c22024041aafb400594c322036cb4e0 (diff)
Fix 'source "missing"' error message for Python 3
IOError() generates an OSError in Python 3.6. OSError does not have a 'message' attribute, which caused the following error when trying to add the hint re. environment variables (the rest of the message was still displayed): AttributeError: 'OSError' object has no attribute 'message' Use str(exception) instead, which seems to work for both Python 2 and Python 3.
Diffstat (limited to 'examples/eval_expr.py')
0 files changed, 0 insertions, 0 deletions