<type 'exceptions.AttributeError'> | Python 2.7.15+: /usr/bin/python2 Sun Nov 24 14:21:27 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'"