Fix broken py37 build
All checks were successful
continuous-integration/drone/push Build is passing

Forgot walrus aren't supported in py37
This commit is contained in:
IamTheFij 2024-11-18 15:14:57 -08:00
parent 04fa347d28
commit 1bd66e42de

View File

@ -380,7 +380,9 @@ class PackageAdapter:
return self.get_names()
if missing_members := set(members) - set(self.get_names()):
# TODO: Use walrus operator when dropping 3.7 support
missing_members = set(members) - set(self.get_names())
if missing_members:
raise ValueError(f"Missing members: {missing_members}")
logging.debug("Extracting members %s to %s", members, path)