mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 19:57:29 +01:00
Fix key error in game support algorithm
This commit is contained in:
parent
af2bdef1bf
commit
b151f78ca6
@ -123,7 +123,7 @@ class GameSupport:
|
|||||||
return package
|
return package
|
||||||
|
|
||||||
def get(self, id_: str) -> Optional[GSPackage]:
|
def get(self, id_: str) -> Optional[GSPackage]:
|
||||||
return self.packages[id_]
|
return self.packages.get(id_)
|
||||||
|
|
||||||
def get_all_that_provide(self, modname: str) -> List[GSPackage]:
|
def get_all_that_provide(self, modname: str) -> List[GSPackage]:
|
||||||
return [package for package in self.packages.values() if modname in package.provides]
|
return [package for package in self.packages.values() if modname in package.provides]
|
||||||
|
Loading…
Reference in New Issue
Block a user