Skip to content
Snippets Groups Projects
Commit 78a30661 authored by Auke Klazema's avatar Auke Klazema
Browse files

SW-609: Fix Exception.message issue in translation_service.py

parent e5f5719c
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ class SpecificationTranslationHandler(MessageHandlerInterface):
specification_xml = etree.tostring(lofarspec, pretty_print=True)
logger.debug(specification_xml)
except Exception as err:
logger.error("Exception while translating trigger -> " + str(err.message))
logger.error("Exception while translating trigger -> " + str(err))
raise
logger.debug("specification after translation from trigger -> " + specification_xml)
......@@ -141,7 +141,7 @@ class SpecificationTranslationHandler(MessageHandlerInterface):
momspec_xml = lofar_translator.translate_lofarspec_to_momspec(spec_xml)
except Exception as err:
logger.error("Exception while translating specification -> " + str(err.message))
logger.error("Exception while translating specification -> " + str(err))
raise
logger.debug("MoM spec after translation -> " + momspec_xml)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment