Skip to content

Commit

Permalink
Remove lgtm warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks committed Mar 7, 2022
1 parent 93718b0 commit 7ecaa30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ir_axioms/backend/pyserini/safe.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Check if Pyserini is installed.
try:
import pyserini # noqa: F401
import pyserini
assert pyserini
except ImportError as error:
raise ImportError(
"The Pyserini backend requires that 'pyserini' is installed."
Expand Down
3 changes: 2 additions & 1 deletion ir_axioms/backend/pyterrier/safe.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Check if PyTerrier is installed.
try:
import pyterrier # noqa: F401
import pyterrier
assert pyterrier
# Ensure that the Terrier JVM has started.
from pyterrier import started

Expand Down

0 comments on commit 7ecaa30

Please sign in to comment.