migration to python3 (#1)
[osm/vim-emu.git] / src / emuvim / api / rest / network.py
index e8c6b9a..a16a84a 100755 (executable)
@@ -115,7 +115,7 @@ class NetworkAction(Resource):
             return str(c), 200, CORS_HEADER
         except Exception as ex:
             logging.exception("API error.")
-            return ex.message, 500, CORS_HEADER
+            return str(ex), 500, CORS_HEADER
 
 
 class DrawD3jsgraph(Resource):