Skip to content

Error with _request - header is str instead of int #24

Description

@pamelafox

In simplegeo/_init.py, line 143:
if self.headers['status'][0] not in ('2', '3'):
raise APIError(int(self.headers['status']), content, self.headers)

When I run that on my machine (App Engine dev server), I get error that int is unsubscriptable, because it gets an int for the status, not a str. I fixed it by wrapping it in str().

I'm not sure if it's that my httplib2 is more modern or less than what's expected, I have 0.7.1, downloaded today.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions