Handle encoding of `None` when decoding unicode
authorMatt Sweeney <mattswe@gmail.com>
Tue, 25 Sep 2012 22:35:30 +0000 (15:35 -0700)
committerMatt Sweeney <mattswe@gmail.com>
Tue, 25 Sep 2012 22:35:30 +0000 (15:35 -0700)
commitb1610df282c67cd87781be166549643e647704ee
tree765571f58192654c692504d189f0541c50b1afe8
parent5ce25688e0a88a892d33cdb23ff6e097ff6829d9
Handle encoding of `None` when decoding unicode

If encoding is None, decoding will throw the following TypeError:
TypeError: unicode() argument 2 must be string, not None

If this is the case, attempt to run without any set encoding
requests/models.py