LeMyst / LeMyst/WikibaseIntegrator
improve exception handling/ debug options
Closed
@LeMyst is already working on this.
Since Jan 30, 2023.
- Dominant language
- Python
- Stars
- 92
- Forks
- 22
- Avg merge
- 2d 34m
- Merged PRs (30d)
- 10
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.