Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve exception handling/ debug options #506

Open
WolfgangFahl opened this issue Jan 30, 2023 · 3 comments
Open

improve exception handling/ debug options #506

WolfgangFahl opened this issue Jan 30, 2023 · 3 comments
Assignees

Comments

@WolfgangFahl
Copy link

currently the exception handling for api calls is limited and makes debugging hard:

try:
            json_result: dict = mediawiki_api_call_helper(data=payload, login=login, allow_anonymous=allow_anonymous, is_bot=is_bot, **kwargs)
        except Exception:
            logging.exception('Error while writing to the Wikibase instance')
            raise

better

except Exception as ex:
# check what type of exception occured and give hints on what to do
@WolfgangFahl
Copy link
Author

see #459

@WolfgangFahl
Copy link
Author

e.g. look at messages_names=['wikibase-validator-label-with-description-conflict']

@WolfgangFahl
Copy link
Author

see #507

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

No branches or pull requests

2 participants