Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when scaling image #695

Open
rodfersou opened this issue Jan 10, 2017 · 0 comments
Open

Exception when scaling image #695

rodfersou opened this issue Jan 10, 2017 · 0 comments

Comments

@rodfersou
Copy link
Member

rodfersou commented Jan 10, 2017

At one customer server we are getting many exceptions when try to scale image data, and image data is None

AttributeError: 'NoneType' object has no attribute 'getSize'
  File "ZPublisher/Publish.py", line 138, in publish
    request, bind=1)
  File "ZPublisher/mapply.py", line 77, in mapply
    if debug is not None: return debug(object,args,context)
  File "ZPublisher/Publish.py", line 48, in call_object
    result=apply(object,args) # Type s<cr> to step into published object.
  File "opt/plone/example.org/eggs/collective.cover-1.4b1-py2.7.egg/collective/cover/browser/scaling.py", line 67, in index_html
    set_headers(self.data, self.request.response)
  File "opt/plone/example.org/eggs/plone.namedfile-3.0.9-py2.7.egg/plone/namedfile/utils.py", line 55, in set_headers
    response.setHeader('Content-Length', file.getSize())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant