在这里发布的代码,我试图编译程序,但每次我这样做都会给我这个回溯:
回溯(最近一次通话最后):
_run_module_as_main 中的文件“/usr/lib/python2.7/runpy.py”,第 162 行
"__main__", fname, 加载器, pkg_name)
_run_code 中的文件“/usr/lib/python2.7/runpy.py”,第 72 行
run_globals 中的执行代码
文件“/home/ceradon/cerabot-rewrite/cerabot/tasks/date_templates.py”,第 187 行,在
机器人 = 日期模板()
文件“/home/ceradon/cerabot-rewrite/cerabot/tasks/date_templates.py”,第 19 行,在 __init__
超级(日期模板,自我).__init__()
__init__ 中的文件“cerabot/bot.py”,第 51 行
self.setup()
文件“/home/ceradon/cerabot-rewrite/cerabot/tasks/date_templates.py”,第 110 行,在设置中
self._load_templates()
_load_templates 中的文件“/home/ceradon/cerabot-rewrite/cerabot/tasks/date_templates.py”,第 61 行
self._to_date.append(template.get(1).value.lower())
AttributeError:“DateTemplates”对象没有属性“_to_date”
我迷路了,有人可以帮忙解决这个问题吗?