diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-18 17:24:40 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-18 17:47:02 +0100 |
| commit | 33b5e1aef6fbfc61385d31c75c151e24cf3ff5bc (patch) | |
| tree | b7931ecce53171de01baa6bf805b48c71a9d741b /setup.cfg | |
| parent | 8574dc519c22024041aafb400594c322036cb4e0 (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 'setup.cfg')
0 files changed, 0 insertions, 0 deletions
