Skip to content

Commit 34e67ed

Browse files
ruffing
1 parent 69d57af commit 34e67ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reflex/experimental/hybrid_property.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def __get__(self, instance: Any, owner: type | None = None, /) -> Any:
3131
return self._var(owner)
3232
# Call the property getter function if no custom var function is set
3333
if self.fget is None:
34-
raise AttributeError("HybridProperty has no getter function")
34+
msg = "HybridProperty has no getter function"
35+
raise AttributeError(msg)
3536
return self.fget(owner)
3637

3738
def var(self, func: Callable[[Any], Var]) -> Self:

0 commit comments

Comments
 (0)