From 2857d6791e3745d060f3c39969a0534bdb2a16a0 Mon Sep 17 00:00:00 2001 From: Cao Xuan Hoang Date: Mon, 16 Jan 2017 14:33:28 +0700 Subject: [PATCH] Replaced e.message with str(e) For logging the exception message: e.message has been deprecated. The preferred way is to call str(e). Change-Id: I0641c2784b790d29304e31aa34960c82347e0276 --- instack/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instack/main.py b/instack/main.py index df24946..f1d7969 100644 --- a/instack/main.py +++ b/instack/main.py @@ -175,7 +175,7 @@ def main(argv=sys.argv): em.run() except Exception as e: - LOG.error(e.message) + LOG.error(str(e)) LOG.error(traceback.print_tb(sys.exc_info()[2])) sys.exit(1) finally: