Skip to content

Commit 5beb58d

Browse files
author
Marvin Klerx
committed
fix ruff linter
1 parent c6800fb commit 5beb58d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Tables/utils/file_reader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ def read_excel(self, path: Path, **kwargs) -> DataFrame:
231231
def read_parquet(self, path: Path) -> DataFrame:
232232
""" """
233233
df: DataFrame = pd.read_parquet(path)
234-
234+
235235
# try to transform to ISO timeformat -> if transformation fails, just return original parquet dataframe
236236
try:
237237
return self._parquet_transform_to_iso_timeformat(df)
238-
except:
238+
except Exception:
239239
return pd.read_parquet(path)
240-
240+
241241
def _parquet_transform_to_iso_timeformat(self, df: DataFrame) -> DataFrame:
242242
ts_cols = df.select_dtypes(include=["datetime64[ns]", "datetime64[ns, UTC]"]).columns
243243
for col in ts_cols:

0 commit comments

Comments
 (0)