mirror of
https://github.com/scummvm/dockerized-bb.git
synced 2026-06-20 05:46:00 +00:00
BUILDBOT: Pythonify check for dictionary
isinstance if prefered over type() is
This commit is contained in:
committed by
Le Philousophe
parent
1c72b060db
commit
d0d1a6f990
+1
-1
@@ -6,7 +6,7 @@ import builds
|
||||
import workers
|
||||
|
||||
def _getFromBuild(data, build):
|
||||
if type(data) is not dict:
|
||||
if not isinstance(data, dict):
|
||||
return data
|
||||
if len(data) == 0:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user