From 7f9af12f3286dcf1542ae77e1d91f6f0d14e9a03 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Wed, 8 May 2024 21:16:15 -0400 Subject: [PATCH] docs: Add comments defending the use of warning __init__ for backwards compatibility --- ocdsextensionregistry/exceptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ocdsextensionregistry/exceptions.py b/ocdsextensionregistry/exceptions.py index b163fcd..a77ea6d 100644 --- a/ocdsextensionregistry/exceptions.py +++ b/ocdsextensionregistry/exceptions.py @@ -26,6 +26,7 @@ class OCDSExtensionRegistryWarning(UserWarning): """Base class for warnings from within this package""" +# The attributes are used by lib-cove-ocds. class ExtensionWarning(OCDSExtensionRegistryWarning): """Used when an extension file can't be read.""" @@ -38,6 +39,7 @@ def __str__(self): return f"{self.extension}: {klass.__module__}.{klass.__name__}: {self.exc}" +# The attributes are used by lib-cove-ocds. class ExtensionCodelistWarning(OCDSExtensionRegistryWarning): """Used when a codelist file can't be read."""