SeanIFitch / icarus_v2

Monitoring software for the Icarus NMR pressure jump apparatus
MIT License
2 stars 0 forks source link

Fixed Windows "No backend available" error message #119

Closed TDStriker closed 3 weeks ago

TDStriker commented 3 weeks ago

Summary by Sourcery

Fix the handling of the 'No backend available' error message on Windows and increase the sleep duration after releasing the quit lock to improve error recovery.

Bug Fixes:

Enhancements:

sourcery-ai[bot] commented 3 weeks ago

Reviewer's Guide by Sourcery

This pull request addresses a Windows-specific "No backend available" error message by updating the error handling logic in the DataHandler class. The changes include adding a new error condition to the exception handling block and increasing the sleep duration in the error recovery process.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Added 'No backend available' error handling
  • Added a new condition to catch 'No backend available' error
  • Extended the list of caught exceptions in the error handling block
src/DataHandler.py
Increased error recovery sleep duration
  • Changed sleep duration from 0.1 seconds to 0.5 seconds in the error recovery process
src/DataHandler.py

Tips and commands #### Interacting with Sourcery - **Trigger a new review:** Comment `@sourcery-ai review` on the pull request. - **Continue discussions:** Reply directly to Sourcery's review comments. - **Generate a GitHub issue from a review comment:** Ask Sourcery to create an issue from a review comment by replying to it. #### Customizing Your Experience Access your [dashboard](https://app.sourcery.ai) to: - Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others. - Change the review language. - Add, remove or edit custom review instructions. - Adjust other review settings. #### Getting Help - [Contact our support team](mailto:support@sourcery.ai) for questions or feedback. - Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information. - Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).