Open WolfgangFahl opened 1 year ago
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
see #459
e.g. look at messages_names=['wikibase-validator-label-with-description-conflict']
see #507
currently the exception handling for api calls is limited and makes debugging hard:
better