Skip to content

Improve error handling for disconnection of source (volumes) #167

@evhpomfort

Description

@evhpomfort

Improve the general error handling when a source (volume) unmounts during verification.
Currently, unmounting a volume leads to an unhandled exception:

Fri, 31 Oct 2025 13:29:12 GMT Traceback (most recent call last):
Fri, 31 Oct 2025 13:29:12 GMT   File "click/core.py", line 1688, in invoke
Fri, 31 Oct 2025 13:29:12 GMT   File "click/core.py", line 1434, in invoke
Fri, 31 Oct 2025 13:29:12 GMT   File "click/core.py", line 783, in invoke
Fri, 31 Oct 2025 13:29:12 GMT   File "click/core.py", line 1157, in __call__
Fri, 31 Oct 2025 13:29:12 GMT   File "ascmhl/commands.py", line 339, in create_for_folder_subcommand
Fri, 31 Oct 2025 13:29:12 GMT   File "ascmhl/commands.py", line 1993, in seal_file_path
Fri, 31 Oct 2025 13:29:12 GMT   File "ascmhl/hasher.py", line 405, in multiple_format_hash_file
Fri, 31 Oct 2025 13:29:12 GMT   File "ascmhl/hasher.py", line 291, in hash_file
Fri, 31 Oct 2025 13:29:12 GMT OSError: [Errno 6] Device not configured
Fri, 31 Oct 2025 13:29:12 GMT [PYI-11462:ERROR] Failed to execute script 'ascmhl' due to unhandled exception!
Fri, 31 Oct 2025 13:29:12 GMT   File "click/core.py", line 1078, in main
Fri, 31 Oct 2025 13:29:12 GMT   File "ascmhl/cli/ascmhl.py", line 49, in <module>
Fri, 31 Oct 2025 13:29:12 GMT   File "ascmhl/commands.py", line 205, in create

Evaluate and improve similar cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions