Skip to content

Commit

Permalink
Bandit error on pickled DF reads
Browse files Browse the repository at this point in the history
Suppressing for now - these files are typically created by the user and not read automatically.
  • Loading branch information
ianhelle committed Mar 14, 2023
1 parent 59348cd commit 3ebcb89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msticpy/data/drivers/local_data_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def query(
)
except ValueError:
return pd.read_csv(file_path)
data_df = pd.read_pickle(file_path)
data_df = pd.read_pickle(file_path) # nosec
if isinstance(data_df, pd.DataFrame):
return data_df
return f"{query} is not a DataFrame ({file_path})."
Expand Down

0 comments on commit 3ebcb89

Please sign in to comment.