comparison 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
comparison
equal deleted inserted replaced
76:8da2a7bef495 77:e7ff5efb100d
515 #if HAS_DL_ITERATE == 1 515 #if HAS_DL_ITERATE == 1
516 dl_iterate_phdr(ForceImportCallback, NULL); 516 dl_iterate_phdr(ForceImportCallback, NULL);
517 #endif 517 #endif
518 518
519 SetupGlobalFunctions(); 519 SetupGlobalFunctions();
520 PythonLock::GlobalInitialize("orthanc", "Exception", 520 PythonLock::GlobalInitialize("orthanc", "OrthancException",
521 GetGlobalFunctions, InstallClasses, 521 GetGlobalFunctions, InstallClasses,
522 config.GetBooleanValue("PythonVerbose", false)); 522 config.GetBooleanValue("PythonVerbose", false));
523 PythonLock::AddSysPath(userScriptDirectory.string()); 523 PythonLock::AddSysPath(userScriptDirectory.string());
524 524
525 525