<type 'exceptions.AttributeError'> | Python 2.7.15+: /usr/bin/python2 Sun Dec 22 19:20:08 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/www/artrz.ru/htdocs/src/index.py in <module>() |
307 ext, blob = pcur.fetchone() |
308 ext = ext and ext.lower() |
=> 309 result = blob.read() |
310 types = { |
311 "pdf": "application/pdf", |
result = '', blob = None, blob.read undefined |
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'read'
args =
("'NoneType' object has no attribute 'read'",)
message =
"'NoneType' object has no attribute 'read'"