Explorar o código

fix: doc build error

wangweimin %!s(int64=4) %!d(string=hai) anos
pai
achega
4e34af4b99
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      pywebio/utils.py

+ 1 - 0
pywebio/utils.py

@@ -99,6 +99,7 @@ class ObjectDictProxy:
 
     def __getattr__(self, item):
         """访问一个不存在的属性时触发"""
+        assert not item.startswith('_'), 'object has no attribute %s' % item
         return self._dict.get(item, None)
 
     def __delattr__(self, item):