Skip to content

Commit 3424e13

Browse files
committed
remove err from default exception
1 parent 5aacc3f commit 3424e13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_problem_bank_helpers_other_functionality.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def test_backticks_to_code_simple_invalid_params():
7272
case = {"params": {"part1": 1, "part2": {"ans1": {1}}}}
7373
try:
7474
pbh.backticks_to_code_tags(case)
75-
except Exception as exc:
76-
assert False, f"Raised an exception {exc}"
75+
except:
76+
assert False, f"Raised an exception"
7777

7878
def test_backticks_to_code_skip_invalid_params():
7979
"""Test rounding an int with specified sigfigs"""
@@ -98,5 +98,5 @@ def test_backticks_to_code_skip_invalid_params():
9898

9999
try:
100100
pbh.backticks_to_code_tags(data)
101-
except Exception as exc:
102-
assert False, f"Raised an exception {exc}"
101+
except:
102+
assert False, f"Raised an exception"

0 commit comments

Comments
 (0)