Clean an error.py warning when used as a library.