我收到一条消息,内容如下:
Traceback (most recent call last):
File "/var/www/fosa/error_supressor.py", line 46, in <module>
sys.stderr.write(latest + '\n')
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
我已经试图解决这个问题好几天了,但实话说我是一个初学者。
让我们先把问题排列一下,看看是否有仁慈的人可以花些时间来帮助一个不起眼的陌生人解决问题 :-)
此外,当我检查错误日志时,我发现了这个错误信息,我怀疑它与问题有关:
File "/var/www/fosa/app/controllers/client/client.py", line 601, in detail
if not course.bookable or not course.school.partner.active: # both objects are boolean
AttributeError: 'NoneType' object has no attribute 'bookable'