Commit 05edfc11 authored by Spiros Koulouzis's avatar Spiros Koulouzis

print exception

parent 51c46d82
...@@ -109,13 +109,13 @@ services: ...@@ -109,13 +109,13 @@ services:
ports: ports:
- "8081:8081" - "8081:8081"
planner: #planner:
depends_on: #depends_on:
- rabbit #- rabbit
- sure-tosca #- sure-tosca
image: alogo53/planner:3.0.0 #image: alogo53/planner:3.0.0
environment: #environment:
RABBITMQ_HOST: rabbit #RABBITMQ_HOST: rabbit
provisioner: provisioner:
depends_on: depends_on:
......
...@@ -157,7 +157,8 @@ if __name__ == "__main__": ...@@ -157,7 +157,8 @@ if __name__ == "__main__":
logger.info("Awaiting RPC requests") logger.info("Awaiting RPC requests")
try: try:
start(channel) start(channel)
except: except Exception as e:
e = sys.exc_info()[0] e = sys.exc_info()[0]
logger.info("Error: " + str(e)) logger.info("Error: " + str(e))
print(e)
exit(-1) exit(-1)
...@@ -89,6 +89,7 @@ def deserialize_datetime(string): ...@@ -89,6 +89,7 @@ def deserialize_datetime(string):
except ImportError: except ImportError:
return string return string
def deserialize_model(data, klass): def deserialize_model(data, klass):
"""Deserializes list or dict to model. """Deserializes list or dict to model.
...@@ -114,28 +115,6 @@ def deserialize_model(data, klass): ...@@ -114,28 +115,6 @@ def deserialize_model(data, klass):
return instance return instance
# def deserialize_model(data, klass):
# """Deserializes list or dict to model.
#
# :param data: dict, list.
# :type data: dict | list
# :param klass: class literal.
# :return: model object.
# """
# instance = klass()
#
# if not instance.swagger_types:
# return data
#
# for attr, attr_type in six.iteritems(instance.swagger_types):
# if data is not None \
# and instance.attribute_map[attr] in data \
# and isinstance(data, (list, dict)):
# value = data[instance.attribute_map[attr]]
# setattr(instance, attr, _deserialize(value, attr_type))
#
# return instance
def _deserialize_list(data, boxed_type): def _deserialize_list(data, boxed_type):
"""Deserializes a list and its elements. """Deserializes a list and its elements.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment