Skip to content

Commit

Permalink
fix: correct try/except statement
Browse files Browse the repository at this point in the history
Otherwise, it fails because Python can't find the `jq` exception.
  • Loading branch information
marsam committed Apr 18, 2024
1 parent 2f6f803 commit 67ccc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_jq.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
jq_available = True
try:
import jq
except jq:
except ImportError:
jq_available = False

pytestmark = [
Expand Down

0 comments on commit 67ccc10

Please sign in to comment.