Transform a print into real warning
Fix an old error that just became a nasty warning
Merge pull request #1330 from benallard/sphinx_warning

Sphinx warning in extension

Fixes ticket:2998