~elachuni/piston-mini-client/dual-scheme-support

« back to all changes in this revision

Viewing changes to piston_mini_client/__init__.py

  • Committer: Anthony Lenton
  • Date: 2010-12-21 14:19:58 UTC
  • mfrom: (21.1.2 trunk)
  • Revision ID: anthony.lenton@canonical.com-20101221141958-efta0y6rlbsoi3t6
MergedĀ inĀ lp:~elachuni/piston-mini-client/304-is-valid-response-status

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
                raise APIError('Unable to connect to %s' % self._service_root)
179
179
            else:
180
180
                raise
181
 
        if response['status'] not in ['200', '201']:
 
181
        if response['status'] not in ['200', '201', '304']:
182
182
            raise APIError('%s: %s\n-----\n%s' % (response['status'],
183
183
                response, body))
184
184
        return response, body