#NEWLINE# def _instance_or_null( self , instance_class , json ) : #NEWLINE# #INDENT# if ( json is None ) : #NEWLINE# #INDENT# return NullObject ( instance_class . __name__ ) #NEWLINE# #UNINDENT# if ( not isinstance ( json , dict ) ) : #NEWLINE# #INDENT# return exceptions . UnprocessableResponseBody ( "GitHub's API returned a body that could not be handled" , json ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return instance_class ( json , self ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# return instance_class ( self )