# HG changeset patch # User Sebastien Jodogne # Date 1619096670 -7200 # Node ID b988cb30534f4fdcf4fe2dc1d8b938b9de03d569 # Parent 07881ac5404bfca38d95dc11612636f8b2f95efa backward compatibility against old versions of the Orthanc framework diff -r 07881ac5404b -r b988cb30534f Framework/Plugins/StorageBackend.cpp --- a/Framework/Plugins/StorageBackend.cpp Thu Apr 22 14:53:52 2021 +0200 +++ b/Framework/Plugins/StorageBackend.cpp Thu Apr 22 15:04:30 2021 +0200 @@ -790,6 +790,7 @@ } catch (Orthanc::OrthancException& e) { +#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 9, 2) if (e.GetErrorCode() == Orthanc::ErrorCode_DatabaseCannotSerialize) { if (attempt >= maxRetries_) @@ -808,6 +809,9 @@ { throw; } +#else + throw; +#endif } } }