changeset 705:745d93684b0b

error in c-move
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 11 Jun 2021 10:50:45 +0200
parents ba2403ebd4b7
children c62539d00251
files Sphinx/source/plugins/python/dicom-find-move-scp.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/plugins/python/dicom-find-move-scp.py	Fri Jun 11 10:24:08 2021 +0200
+++ b/Sphinx/source/plugins/python/dicom-find-move-scp.py	Fri Jun 11 10:50:45 2021 +0200
@@ -20,5 +20,8 @@
     orthanc.LogWarning('C-MOVE request to be handled in Python: %s' %
                        json.dumps(request, indent = 4, sort_keys = True))
 
+    # To indicate a failure in the processing, you can raise an exception:
+    #   raise Exception('Cannot handle C-MOVE')
+
 orthanc.RegisterFindCallback(OnFind)
 orthanc.RegisterMoveCallback(OnMove)