A streamlined workflow and GUI for real-time species identification and pathogen characterization via nanopore sequencing data. Engineered for precision, speed, and user-friendliness, with offline functionality post-initialization.
GNU General Public License v3.0
14
stars
2
forks
source link
Add Termination Logic to fetch_species_data Function for Zero Results or Errors #33
This PR adds functionality to the fetch_species_data function to terminate the program when zero rows are fetched from the database or an error occurs during the fetch operation. Previously, the function would just log a warning and continue execution, which could potentially lead to issues later in the pipeline. Now, the function will log an error or warning message and terminate the program, providing a safer failure mechanism.
Changes:
Add a check for zero fetched rows, logging a warning and terminating the program if true.
Add program termination on exceptions with a logged error message.
This PR adds functionality to the
fetch_species_data
function to terminate the program when zero rows are fetched from the database or an error occurs during the fetch operation. Previously, the function would just log a warning and continue execution, which could potentially lead to issues later in the pipeline. Now, the function will log an error or warning message and terminate the program, providing a safer failure mechanism.Changes: