问题描述
from pykeepass import PyKeePass
try:
kp = PyKeePass("newdb.kdb",password="qwerty@123")
except:
print("Got exception")
lstEntry = kp.find_entries_by_notes(".*testing.*",regex=True)
print(lstEntry)
以下是错误
Traceback (most recent call last):
File "keeps.py",line 8,in <module>
lstEntry = kp.find_entries_by_notes(".*testing.*",regex=True)
File "/home/oracle/env/lib64/python3.6/site-packages/pykeepass/pykeepass.py",line 564,in find_entries_by_notes
first=first
File "/home/oracle/env/lib64/python3.6/site-packages/pykeepass/pykeepass.py",line 508,in find_entries
res = self._find(prefix,entry_xp,path=path,tree=group,**kwargs)
File "/home/oracle/env/lib64/python3.6/site-packages/pykeepass/pykeepass.py",line 362,in _find
**kwargs
File "/home/oracle/env/lib64/python3.6/site-packages/pykeepass/pykeepass.py",line 279,in _xpath
tree = self.tree
File "/home/oracle/env/lib64/python3.6/site-packages/pykeepass/pykeepass.py",line 200,in tree
return self.kdbx.body.payload.xml
AttributeError: 'nonetype' object has no attribute 'payload'
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)