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

Logging error #109

Open
waszil opened this issue Jul 8, 2020 · 0 comments
Open

Logging error #109

waszil opened this issue Jul 8, 2020 · 0 comments

Comments

@waszil
Copy link

waszil commented Jul 8, 2020

I'm using python 3.7.7, sphinx 3.0.3 and the latest automodapi.

The following problem occurs:
I get these kind of warnings:
"WARNING: Found additional options members in automodapi"
however it causes a logging error:
TypeError: not all arguments converted during string formatting

I played around with it and I could fix it by this, as it seems that arguments are passed to the string that have no % formatter placeholders:

Index: automodapi.py
===================================================================
--- automodapi.py	(revision 34799)
+++ automodapi.py	(working copy)
@@ -286,7 +286,7 @@
             # tell sphinx that the remaining args are invalid.
             if len(unknownops) > 0 and app is not None:
                 opsstrs = ','.join(unknownops)
-                msg = 'Found additional options ' + opsstrs + ' in automodapi.'
+                msg = 'Found additional options ' + opsstrs + ' in automodapi. %s'
                 if warnings:
                     logger.warning(msg, location)
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

1 participant