LeMyst / LeMyst/WikibaseIntegrator

improve exception handling/ debug options

Closed
#506 3 comments 1 reaction 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.