File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -675,6 +675,15 @@ def process(config):
675
675
logging .info (f"Processed { msg } " )
676
676
# exit out of the loop as the query has completed
677
677
return 0
678
+ except OSError as e :
679
+ # See https://docs.python.org/3/library/exceptions.html#OSError, possible errors are :
680
+ # File not found: Attempting to open a file that does not exist
681
+ # Permission denied: Trying to access a file or directory without the necessary permissions.
682
+ # Disk full: Running out of storage space while writing to a file.
683
+ # Invalid file path: Providing an incorrect or malformed file path.
684
+ # Device errors: Problems with hardware devices, such as a disconnected drive.
685
+ logging .critical (f"Cannot continue - OS Error encountered while processing { msg } : { e } " )
686
+ raise e
678
687
except Exception as e :
679
688
# Try to handle read errors with expired access tokens for azure urls
680
689
# e.g. GenomicsDBIteratorException exception : Error while reading from TileDB array
You can’t perform that action at this time.
0 commit comments