Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions configurize/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from .allowed_types import recur_to_allowed_types
from .data_class import DataClass
from .reference import Ref
from .reference import CfgReferenceError, Ref
from .utils import get_func_brief, writable_property


Expand Down Expand Up @@ -196,7 +196,7 @@ def _deref(self, name, value, deref=True):
else:
value.cur_value = cur
except (AttributeError, AssertionError, TypeError):
if value.default is ReferenceError:
if value.default is CfgReferenceError:
if deref:
raise value.default(
f"Unable to find reference of <{value.ref_str}> @ {self._class_name}"
Expand Down
4 changes: 2 additions & 2 deletions configurize/reference.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ReferenceError(LookupError):
class CfgReferenceError(LookupError):
def __str__(self):
import traceback

Expand Down Expand Up @@ -45,7 +45,7 @@ class Exp:
}
"""

def __init__(self, ref_str: str, default=ReferenceError):
def __init__(self, ref_str: str, default=CfgReferenceError):
assert ref_str.startswith(".")
self.ref_str = ref_str
self.actions = self._parse_level(ref_str)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "configurize"
version = "0.1.2"
version = "0.1.3"
description = "Hierarchical configuration management with inheritance, cross-references, and diffing"
readme = "README.md"
license = {text = "MIT"}
Expand Down
Loading