summaryrefslogtreecommitdiff
path: root/bin/heat-api-cfn
diff options
context:
space:
mode:
Diffstat (limited to 'bin/heat-api-cfn')
-rwxr-xr-xbin/heat-api-cfn4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/heat-api-cfn b/bin/heat-api-cfn
index 079a8b939..fa0dd60e6 100755
--- a/bin/heat-api-cfn
+++ b/bin/heat-api-cfn
@@ -22,6 +22,7 @@ import eventlet
eventlet.monkey_patch(os=False)
import os
+import six
import sys
# If ../heat/__init__.py exists, add ../ to Python search path, so that
@@ -63,4 +64,5 @@ if __name__ == '__main__':
systemd.notify_once()
server.wait()
except RuntimeError as e:
- sys.exit("ERROR: %s" % e)
+ msg = six.text_type(e)
+ sys.exit("ERROR: %s" % msg)