Skip to content

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

@pamelafox

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions