Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit b9d1621

Browse files
committed
avoid inf recursive
1 parent d18da59 commit b9d1621

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

torchchat/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,8 @@ def __getattr__(self, name):
495495
:return: The attribute value if found, otherwise raise AttributeError.
496496
"""
497497
try:
498-
return super().__getattribute__(name)
498+
if name in self.__dict__:
499+
return self.__dict__[name]
499500
except AttributeError:
500501
pass
501502

0 commit comments

Comments
 (0)