diff Sources/Plugin.cpp @ 77:e7ff5efb100d

Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Aug 2021 18:16:42 +0200
parents 6fc445793796
children 068551520123
line wrap: on
line diff
--- a/Sources/Plugin.cpp	Mon Aug 09 17:00:53 2021 +0200
+++ b/Sources/Plugin.cpp	Mon Aug 09 18:16:42 2021 +0200
@@ -517,7 +517,7 @@
 #endif
 
         SetupGlobalFunctions();
-        PythonLock::GlobalInitialize("orthanc", "Exception",
+        PythonLock::GlobalInitialize("orthanc", "OrthancException",
                                      GetGlobalFunctions, InstallClasses,
                                      config.GetBooleanValue("PythonVerbose", false));
         PythonLock::AddSysPath(userScriptDirectory.string());