Skip to content

Commit

Permalink
Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianBracq committed Sep 6, 2023
1 parent 848311e commit 1219647
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion msticpy/data/drivers/cybereason_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def query(

logger.debug("Retrieved %d/%d results", len(results), total_results)

df_result: pd.DataFrame = None

if len(results) < total_results:
df_result = self._exec_paginated_queries(
body=body,
Expand All @@ -156,7 +158,7 @@ def query(
total_results=total_results,
)
else:
df_result: pd.DataFrame = self._format_result_to_dataframe(result=response)
df_result = self._format_result_to_dataframe(result=response)

return df_result

Expand Down

0 comments on commit 1219647

Please sign in to comment.