Skip to content

Improve logging when failing to load class from exts_classmap#3657

Merged
bartoldeman merged 1 commit intoeasybuilders:developfrom
Flamefire:logEasyBlockSearch
Apr 21, 2021
Merged

Improve logging when failing to load class from exts_classmap#3657
bartoldeman merged 1 commit intoeasybuilders:developfrom
Flamefire:logEasyBlockSearch

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

@Flamefire Flamefire commented Apr 20, 2021

Posted in Slack:

TypeError: __init__() takes 2 positional arguments but 3 were given

This was not caught and "enhanced" by the information which class wastried to load.
This change catches the base Exception class, which includes TypeError.
It also logs the class found before instantiating it.

Posted in Slack:
   TypeError: __init__() takes 2 positional arguments but 3 were given

This was not caught and "enhanced" by the information which class was
tried to load.
This change catches the base Exception class, which includes TypeError.
It also logs the class found before instantiating it.
Copy link
Copy Markdown
Contributor

@bartoldeman bartoldeman left a comment

Choose a reason for hiding this comment

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

LGTM

@bartoldeman bartoldeman merged commit 2ef24b6 into easybuilders:develop Apr 21, 2021
@Flamefire Flamefire deleted the logEasyBlockSearch branch April 21, 2021 14:38
@boegel boegel added the bug fix label Apr 21, 2021
@boegel boegel modified the milestones: ASAP, next release (4.3.5?) Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants