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

print exception

parent 51c46d82
......@@ -109,13 +109,13 @@ services:
ports:
- "8081:8081"
planner:
depends_on:
- rabbit
- sure-tosca
image: alogo53/planner:3.0.0
environment:
RABBITMQ_HOST: rabbit
#planner:
#depends_on:
#- rabbit
#- sure-tosca
#image: alogo53/planner:3.0.0
#environment:
#RABBITMQ_HOST: rabbit
provisioner:
depends_on:
......
......@@ -157,7 +157,8 @@ if __name__ == "__main__":
logger.info("Awaiting RPC requests")
try:
start(channel)
except:
except Exception as e:
e = sys.exc_info()[0]
logger.info("Error: " + str(e))
print(e)
exit(-1)
......@@ -89,6 +89,7 @@ def deserialize_datetime(string):
except ImportError:
return string
def deserialize_model(data, klass):
"""Deserializes list or dict to model.
......@@ -114,28 +115,6 @@ def deserialize_model(data, klass):
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):
"""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