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

internal_api_error_MWException - details #294

Open
WolfgangFahl opened this issue Mar 8, 2023 · 1 comment
Open

internal_api_error_MWException - details #294

WolfgangFahl opened this issue Mar 8, 2023 · 1 comment

Comments

@WolfgangFahl
Copy link

When trying to edit Forms in SMWs using the PageForms extensions via mwclient i get error messages such as:

mwclient.errors.APIError: ('internal_api_error_MWException', '[922012b966328128de040ab1] Caught exception of type MWException', None)

In a few cases. I would love to debug these and would need the details of the API exception. Does mwclient need to be changed for this feature or is there some parameter to allow to get more exception details?

@AdamWill
Copy link
Member

I'm guessing we're in mwclient.client.handle_api_result here, most likely. If so, you could maybe hack that up a bit - right after if 'error' in info: - to print the whole of info, which might have something more useful in it somewhere that we're not capturing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants