Skip to content

Commit

Permalink
raise exception for storescu errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Apr 17, 2024
1 parent 998a9d2 commit 917a95c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dicom_dirSend.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
logger.opt(colors = True)
logger.add(sys.stderr, format=logger_format)

__version__ = '1.1.2'
__version__ = '1.1.4'

DISPLAY_TITLE = r"""
_ _ _ _ _ _____ _
Expand Down Expand Up @@ -129,11 +129,10 @@ def main(options: Namespace, inputdir: Path, outputdir: Path):
LOG(f"Command: {d_response['cmd']}")
if d_response['returncode']:
LOG(f"Error: {d_response["stderr"]}")
raise Exception(d_response["stderr"])
else:
LOG("Response: Success\n")




if __name__ == '__main__':
main()

0 comments on commit 917a95c

Please sign in to comment.