error catching for edge cases and poorly formatted params

This commit is contained in:
Josh Burman
2021-12-16 19:01:59 +00:00
parent 04ab475a36
commit dc696b47ac
2 changed files with 33 additions and 23 deletions

View File

@ -19,6 +19,9 @@ class LoftService(Base):
self.result = self.stream_to_s3_bucket()
except ItemGenerationError as error:
self.result = self.stream_to_s3_bucket(error)
except TypeError as error:
logging.error(error)
self.result = self.stream_to_s3_bucket(ItemGenerationError("Provided params causing error in calculation results"))
def retreive_attributes_from_message(self):
logging.info('Retrieving attributes from message...')