mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Check types of received attributes
This commit is contained in:
@@ -89,6 +89,7 @@ class GitCommit( object ):
|
||||
if "sha" in attributes and attributes[ "sha" ] is not None:
|
||||
self.__sha = attributes[ "sha" ]
|
||||
if "tree" in attributes and attributes[ "tree" ] is not None:
|
||||
assert isinstance( attributes[ "tree" ], dict )
|
||||
self.__tree = GitTree.GitTree( self.__requester, attributes[ "tree" ], lazy = True )
|
||||
if "url" in attributes and attributes[ "url" ] is not None:
|
||||
self.__url = attributes[ "url" ]
|
||||
|
||||
Reference in New Issue
Block a user