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

wrap should handle None better #204

derks opened this Issue Oct 10, 2013 · 0 comments


None yet
1 participant

derks commented Oct 10, 2013

File "/mnt/derks-mac/Development/cement/cement/utils/", line 106, in wrap
    return wrapper.fill(text)
  File "/usr/lib/python2.7/", line 330, in fill
    return "\n".join(self.wrap(text))
  File "/usr/lib/python2.7/", line 317, in wrap
    text = self._munge_whitespace(text)
  File "/usr/lib/python2.7/", line 146, in _munge_whitespace
    text = text.expandtabs()
AttributeError: 'NoneType' object has no attribute 'expandtabs'

If None is passed, it should just return None.

@ghost ghost assigned derks Oct 10, 2013

derks added a commit that referenced this issue Oct 22, 2013

@derks derks closed this Oct 22, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment