ianalexander/django-oauth2-tastypie — pull request #1 by n3ls0n (2013-05-13 14:46:04+00:00)
Title: Attribute Error in is_authenticated

Without this check it is possible to get an AttributeError: 'NoneType'
object has no attribute 'split' caused by key =
auth_header_value.split(' ')[1]. In this case the except in the try
statement is not raised. This prevents that.