Replace e.message with str(e) for Python 3 compatibility (#4416)

This commit is contained in:
Yen Chi Hsuan
2017-04-07 09:58:19 -07:00
committed by Brad Warren
parent d557c39c99
commit 4b91f7fbbc
3 changed files with 4 additions and 9 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ def _reconstitute(config, full_path):
except (ValueError, errors.Error) as error:
logger.warning(
"An error occurred while parsing %s. The error was %s. "
"Skipping the file.", full_path, error.message)
"Skipping the file.", full_path, str(error))
logger.debug("Traceback was:\n%s", traceback.format_exc())
return None