diff --git a/src/flask_rq2/cli.py b/src/flask_rq2/cli.py
index <HASH>..<HASH> 100644
--- a/src/flask_rq2/cli.py
+++ b/src/flask_rq2/cli.py
@@ -14,7 +14,7 @@ from rq.cli import cli as rq_cli
 
 try:
     from flask.cli import AppGroup, ScriptInfo
-except ImportError:
+except ImportError:  # pragma: no cover
     try:
         from flask_cli import AppGroup, ScriptInfo
     except ImportError:
Ignore the ImportError of flask.cli in test coverage.