~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/client.py

  • Committer: Curtis Hovey
  • Date: 2012-02-14 22:49:46 UTC
  • Revision ID: curtis.hovey@canonical.com-20120214224946-rx83gm3er2pho566
Raise UnparsableDateRange when the date cannot be parsed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
                raise UnsupportedOrder
138
138
            elif response.reason == UnsupportedDisplayType.__doc__:
139
139
                raise UnsupportedDisplayType
 
140
            elif response.reason == UnparsableDateRange.__doc__:
 
141
                raise UnparsableDateRange
140
142
            else:
141
143
                raise ValueError('Bad request')
142
144
        data = response.read()