diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index 0cd4d89a0c..c6ddbaafe8 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -24,7 +24,7 @@ from pytorch_lightning.utils.debugging import MisconfigurationException try: from apex import amp APEX_AVAILABLE = True -except ModuleNotFoundError: +except ModuleNotFoundError: # pragma: no cover APEX_AVAILABLE = False diff --git a/setup.cfg b/setup.cfg index 8d4afaee71..1efb021f92 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,6 +30,7 @@ exclude_lines = print(e) print(traceback.print_exc()) return * + raise Exception omit = pytorch_lightning/callbacks/pt_callbacks.py