Skip to content

Commit

Permalink
Fix logic issue
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianBracq committed Feb 29, 2024
1 parent 48b4f0d commit 6e256bd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions msticpy/data/core/data_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,13 @@ def _execute_query(self, *args, **kwargs) -> Union[pd.DataFrame, Any]:
)
except (ValueError, FileNotFoundError):
logger.info("Data not found in cache.")
return None
logger.info(
"Data found in cache, returning result from past execution %s.",
result.timestamp.isoformat(sep=" ", timespec="seconds"),
)
if result.raw_results is not None:
return result.raw_results
else:
logger.info(
"Data found in cache, returning result from past execution %s.",
result.timestamp.isoformat(sep=" ", timespec="seconds"),
)
if result.raw_results is not None:
return result.raw_results

query_result: pd.DataFrame = self.exec_query(
query_str, query_source=query_source, **query_options
Expand Down

0 comments on commit 6e256bd

Please sign in to comment.