Skip to content

Commit e150797

Browse files
committed
fix: fix for linting
1 parent 944908a commit e150797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

failure_analysis/failure_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def run(path: str, min_threshold: int, drain_ini: str, drain_off: bool):
135135
print("============== FAILURE START =================")
136136
try:
137137
print(df.loc[df["failure1"] == failure, "failure_display"].iloc[0])
138-
except:
138+
except UnicodeEncodeError:
139139
print(
140140
df.loc[df["failure1"] == failure, "failure_display"].iloc[0].encode("ascii", "ignore").decode("utf - 8")
141141
)

0 commit comments

Comments
 (0)