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

Error on refresh with UTCAttribute in python 2.7 #3

Closed
wants to merge 1 commit into from

Commits on Feb 3, 2014

  1. Error on refresh with UTCAttribute in python 2.7

        self._model.refresh()
      File "/usr/local/lib/python2.7/dist-packages/pynamodb/models.py", line 360, in refresh
        args, kwargs = self._get_save_args(attributes=False)
      File "/usr/local/lib/python2.7/dist-packages/pynamodb/models.py", line 346, in _get_save_args
        serialized = self.serialize(null_check=null_check)
      File "/usr/local/lib/python2.7/dist-packages/pynamodb/models.py", line 391, in serialize
        serialized = attr.serialize(value)
      File "/usr/local/lib/python2.7/dist-packages/pynamodb/attributes.py", line 258, in serialize
        fmt = Delorean(value, timezone=UTC).datetime.strftime(DATETIME_FORMAT)
      File "/usr/local/lib/python2.7/dist-packages/delorean/dates.py", line 175, in __init__
        if not is_datetime_naive(datetime):
      File "/usr/local/lib/python2.7/dist-packages/delorean/dates.py", line 30, in is_datetime_naive
        if dt.tzinfo is None:
    AttributeError: 'unicode' object has no attribute 'tzinfo'
    JohnCEarls committed Feb 3, 2014
    Configuration menu
    Copy the full SHA
    3aaffa9 View commit details
    Browse the repository at this point in the history