Skip to content

Conversation

@Vinoryz
Copy link

@Vinoryz Vinoryz commented Dec 9, 2025

This pull request improves the robustness and error handling of the atxDatastore artifact processor in scripts/artifacts/atxDatastore.py. The main focus is to ensure that missing or inaccessible databases are properly logged and handled, preventing unhandled exceptions during execution.

Error handling and logging improvements:

  • Added checks to ensure both ATXDataStore and Local databases are present before proceeding, with clear log messages if either is missing.
  • Added error handling for database opening and attachment failures, logging specific error messages and safely returning early if issues are encountered.
  • Wrapped the SQL query execution in a try-except block to catch and log any exceptions during data retrieval, ensuring the database connection is closed properly on error.
  • Added logfunc to the imports to enable logging functionality.

Data processing adjustment:

  • Simplified timestamp conversion by removing unnecessary None checks, since the conversion function can handle None values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant