Skip to content

Commit e991f7e

Browse files
committed
chore(Parser.py): rm pandas exception
1 parent 01f77df commit e991f7e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

rrparser/Parser.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
read_csv,
1616
DataFrame
1717
)
18-
from pandas.errors import (
19-
UndefinedVariableError
20-
)
18+
# from pandas.errors import (
19+
# UndefinedVariableError
20+
# )
2121
from csv import (
2222
QUOTE_ALL,
2323
QUOTE_NONE
@@ -147,10 +147,10 @@ def filter_(
147147
query += ' & `Rule usage` == @rule_usage_filter'
148148
# Used in 'e' in case of exception raised
149149
rule_usage_filter = ['both', rule_type]
150-
try:
151-
return df.query(query)
152-
except UndefinedVariableError as e:
153-
raise KeyError(e)
150+
# try:
151+
return df.query(query)
152+
# except UndefinedVariableError as e:
153+
# raise KeyError(e)
154154

155155

156156
def fetch_retrorules(

0 commit comments

Comments
 (0)