Skip to content

Commit

Permalink
Now error message is just one line
Browse files Browse the repository at this point in the history
  • Loading branch information
YHordijk committed Mar 24, 2024
1 parent b7c5df0 commit f4c63ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tcutility/job/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def __enter__(self):
def __exit__(self, exc_type, exc_value, exc_tb):
if exc_type:
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
log.error(f'Job set-up failed with exception:')
log.error(f' {exc_type.__name__}({exc_value}) in File "{fname}", line {exc_tb.tb_lineno}.')
log.error(f'Job set-up failed with exception: {exc_type.__name__}({exc_value}) in File "{fname}", line {exc_tb.tb_lineno}.')
return True
self.run()

Expand Down

0 comments on commit f4c63ce

Please sign in to comment.