Commit 22b5199b authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

readability improvements

updated __version__
Former-commit-id: 914b284f
Former-commit-id: a99bd3de
parent 49e8b667
......@@ -15,7 +15,7 @@ from . import config
from .processing.process_controller import process_controller
__version__ = '20170523.02'
__version__ = '20170523.03'
__author__ = 'Daniel Scheffler'
__all__ = ['algorithms',
'io',
......
......@@ -764,7 +764,7 @@ class AtmCorr(object):
self.logger.error('\nAn error occurred during atmospheric correction. BE AWARE THAT THE SCENE %s '
'(ENTITY ID %s) HAS NOT BEEN ATMOSPHERICALLY CORRECTED! Error message was: \n%s\n'
%(self.inObjs[0].scene_ID, self.inObjs[0].entity_ID, repr(e)))
%(self.inObjs[0].scene_ID, self.inObjs[0].entity_ID, repr(e)) )
# TODO include that in the job summary!
return list(self.inObjs)
......
......@@ -118,10 +118,9 @@ def log_uncaught_exceptions(GMS_mapper):
raise
# collect some informations about failed GMS object and summarize them in failed_GMS_object
failed_Obj = failed_GMS_object(
GMS_objs if isinstance(GMS_objs, collections.OrderedDict) else \
GMS_objs[0] if isinstance(GMS_objs, list) else GMS_objs,
GMS_mapper.__name__, type_, value_, traceback_)
failed_Obj = \
failed_GMS_object(GMS_objs if isinstance(GMS_objs, collections.OrderedDict) else \
GMS_objs[0] if isinstance(GMS_objs, list) else GMS_objs, GMS_mapper.__name__, type_, value_, traceback_)
# log the exception and raise warning
failed_Obj.logger.error('\n'+traceback_, exc_info=False)
......
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