Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
8de3ae0
Implement strutctural pattern matching with query response parsing
FlorianBracq Jan 15, 2026
eeea48d
Various linting changes
FlorianBracq Jan 15, 2026
a9cf102
Merge branch 'main' of https://github.com/microsoft/msticpy into flor…
FlorianBracq Feb 9, 2026
b03d085
Add parameter previous_response to __execute_query
FlorianBracq Feb 9, 2026
b0bf546
Add method _handle_request_timeout
FlorianBracq Feb 9, 2026
d1bf673
Minor fixes
FlorianBracq Feb 9, 2026
642f317
simplify condition
FlorianBracq Feb 9, 2026
b2025ef
rework _flatten_element_values
FlorianBracq Feb 9, 2026
7db2330
Rework _flatten_simple_values
FlorianBracq Feb 9, 2026
96f8745
map extra fields to CR output
FlorianBracq Feb 9, 2026
e349c5b
Merge branch 'main' of https://github.com/microsoft/msticpy into flor…
FlorianBracq Feb 10, 2026
59100a9
raise MsticpyDataQueryError when issues have been encountered
FlorianBracq Feb 10, 2026
eda6324
Fix logging
FlorianBracq Feb 10, 2026
1d79fb4
Add support for other CR error message
FlorianBracq Feb 10, 2026
92216c8
Add other Cybereson timeout errors
FlorianBracq Feb 10, 2026
00b8c1d
Add exception name and args to error
FlorianBracq Feb 10, 2026
93a84dc
Add special logging for MsticpyDataQueryError
FlorianBracq Feb 10, 2026
34e42ca
Add support for Cyberason HTTP errors 429
FlorianBracq Feb 10, 2026
75dec6a
Sort imports
FlorianBracq Feb 10, 2026
31e7304
Remove query timeout
FlorianBracq Feb 11, 2026
123673f
Fix message
FlorianBracq Feb 11, 2026
e4881b7
Fix docstring
FlorianBracq Feb 11, 2026
d2cf05f
Use proper exceptions for Cybereason driver
FlorianBracq Feb 11, 2026
4e4ed82
Use keyword arguments for method _create_paginated_query_tasks
FlorianBracq Feb 11, 2026
8b0f20e
Fix import of Self
FlorianBracq Feb 11, 2026
0800e4f
Fix test
FlorianBracq Feb 11, 2026
e9d735a
Fix mypy error
FlorianBracq Feb 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions msticpy/data/core/query_provider_connections_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,23 @@ async def _exec_queries_threaded(
result: pd.DataFrame | str | None = await thread_task
logger.info("Query task '%s' completed successfully.", query_id)
results.append(result)
except Exception: # pylint: disable=broad-exception-caught
except MsticpyDataQueryError as msticpy_dqe:
logger.warning(
"Query task '%s' failed with exception",
"Query task '%s' failed",
query_id,
)
msticpy_dqe.display_exception()
# Reusing thread task would result in:
# RuntimeError: cannot reuse already awaited coroutine
# A new task should be queued
failed_tasks_ids.append(query_id)
except Exception as exc: # pylint: disable=broad-exception-caught
logger.warning(
"Query task '%s' failed with exception %s - %s",
query_id,
exc.__class__.__name__,
exc.args,
)
# Reusing thread task would result in:
# RuntimeError: cannot reuse already awaited coroutine
# A new task should be queued
Expand Down
Loading