Skip to content

Commit ae61f36

Browse files
ohmeowjph00
andauthored
Update fasthtml/core.py
fix error looked for on getattr Co-authored-by: Jeremy Howard <[email protected]>
1 parent d06ffb0 commit ae61f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fasthtml/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def f(func):
689689

690690
def __getattr__(self, name):
691691
try: return getattr(self.rt_funcs, name)
692-
except KeyError: return object.__getattribute__(self, name)
692+
except AttributeError: return super().__getattr__(self, name)
693693

694694
def to_app(self, app):
695695
"Add routes to `app`"

0 commit comments

Comments
 (0)