[Scummvm-git-logs] scummvm-sites director-buildbot -> c9fc1ad0db5fdc11150e2a68a9fd34f0e5d32440
rvanlaar
noreply at scummvm.org
Wed Jan 25 20:54:53 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-sites' repo located at https://github.com/scummvm/scummvm-sites .
Summary:
c9fc1ad0db DIRECTOR-BUILDBOT: make autodetect field optional
Commit: c9fc1ad0db5fdc11150e2a68a9fd34f0e5d32440
https://github.com/scummvm/scummvm-sites/commit/c9fc1ad0db5fdc11150e2a68a9fd34f0e5d32440
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2023-01-25T21:53:44+01:00
Commit Message:
DIRECTOR-BUILDBOT: make autodetect field optional
Code broke because it was expecting target["autodetect"] to
be a field that is always there.
Now it's only fetched when it's there.
Changed paths:
director/targets.py
diff --git a/director/targets.py b/director/targets.py
index c12a842..119eacd 100644
--- a/director/targets.py
+++ b/director/targets.py
@@ -52,7 +52,7 @@ with open(os.path.join(cwd, "targets.json"), "r") as data:
targets = json.loads(data.read())
for target in targets:
test_targets.append(
- TestTarget(**{name: target[name] for name in target_fields})
+ TestTarget(**{name: target[name] for name in target_fields if name in target})
)
More information about the Scummvm-git-logs
mailing list