Skip to content

Conversation

@devvythelopper
Copy link
Collaborator

No description provided.

raise
except Exception as e:
except BaseException as e:
logger.error("error: %s", str(e))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rewrite the logger.error command with

tb_lines = traceback.format_exception(type(exc), exc, exc.__traceback__)
logger.error("".join(tb_lines).rstrip())

Then the redundant code in L413 (_done_callback) can be removed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants