mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 06:27:38 +01:00
Fix crash due to remaining raise() in getDepends()
This commit is contained in:
parent
d046de8057
commit
d0969263ba
@ -299,10 +299,12 @@ def getDepends(package):
|
||||
if url.netloc == "github.com":
|
||||
urlmaker = GithubURLMaker(url)
|
||||
else:
|
||||
raise TaskError("Unsupported repo")
|
||||
return {}
|
||||
|
||||
result = {}
|
||||
if urlmaker.isValid():
|
||||
if not urlmaker.isValid():
|
||||
return {}
|
||||
|
||||
#
|
||||
# Try getting depends on mod.conf
|
||||
#
|
||||
@ -346,10 +348,6 @@ def getDepends(package):
|
||||
|
||||
return result
|
||||
|
||||
else:
|
||||
print(TaskError("non-github depends detector not implemented yet!"))
|
||||
return {}
|
||||
|
||||
|
||||
def importDependencies(package, mpackage_cache):
|
||||
if Dependency.query.filter_by(depender=package).count() != 0:
|
||||
|
Loading…
Reference in New Issue
Block a user