feat(argus): don't just panic on failed number parsing

This commit is contained in:
Anand Balakrishnan 2023-10-13 13:37:07 -07:00
parent 141f7d3983
commit a7431ce424
2 changed files with 17 additions and 3 deletions

View file

@ -14,6 +14,8 @@ def test_correct_expr(data: st.DataObject) -> None:
try:
_ = argus.parse_expr(spec)
except ValueError as e:
if "Unable to parse as 64-bit" in str(e):
return
logging.critical(f"unable to parse expr: {spec}")
raise e
except BaseException as e: