Skip to content

Error getting project commit #15

Closed

Description

@bluesliverx

I get a weird error while trying to retrieve a single project commit. It turns out that the data I'm passing in is actually of the "unicode" type and not a string. I think you need a little better handling for unicode strings. This change on line 526 fixed the issue for me:

-        if data is None or isinstance(data, int) or isinstance(data, str):
+        if data is None or isinstance(data, int) or isinstance(data, str) or isinstance(data, unicode):

Not sure if there is a more general solution for this. I also was able to fix it once I tracked it down by converting my id data to a string before passing it to the API.

Activity

  1. gpocentek commented on Jan 15, 2014

    @gpocentek
    Contributor

    Thanks for the report. Which version of python are you using?

  2. bluesliverx commented on Jan 15, 2014

    @bluesliverx
    Author

    2.6.6

  3. locked as resolved and limited conversation to collaborators on Dec 6, 2021
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