Skip to content

Commit 6621932

Browse files
committed
Ignore import error handling from coverage
1 parent 1deb63f commit 6621932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

attr_utils/pprinter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# 3rd party
5656
import prettyprinter # type: ignore # nodep
5757
from prettyprinter.prettyprinter import _BASE_DISPATCH, pretty_dispatch # type: ignore # nodep
58-
except ImportError as e:
58+
except ImportError as e: # pragma: no cover
5959
exc = type(e)(f"Could not import 'prettyprinter'. Perhaps you need to install 'attr_utils[pprint]'?\n\n{e}")
6060
raise exc.with_traceback(e.__traceback__) from None
6161

0 commit comments

Comments
 (0)