Skip to content

Commit d06ffb0

Browse files
ohmeowjph00
andauthored
Update fasthtml/core.py
using fastcore getattr Co-authored-by: Jeremy Howard <[email protected]>
1 parent 57616ed commit d06ffb0

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
@@ -688,7 +688,7 @@ def f(func):
688688
return f(path) if callable(path) else f
689689

690690
def __getattr__(self, name):
691-
try: return self.rt_funcs.__getattr__(name)
691+
try: return getattr(self.rt_funcs, name)
692692
except KeyError: return object.__getattribute__(self, name)
693693

694694
def to_app(self, app):

0 commit comments

Comments
 (0)