mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +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":
|
if url.netloc == "github.com":
|
||||||
urlmaker = GithubURLMaker(url)
|
urlmaker = GithubURLMaker(url)
|
||||||
else:
|
else:
|
||||||
raise TaskError("Unsupported repo")
|
return {}
|
||||||
|
|
||||||
result = {}
|
result = {}
|
||||||
if urlmaker.isValid():
|
if not urlmaker.isValid():
|
||||||
|
return {}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Try getting depends on mod.conf
|
# Try getting depends on mod.conf
|
||||||
#
|
#
|
||||||
@ -346,10 +348,6 @@ def getDepends(package):
|
|||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
else:
|
|
||||||
print(TaskError("non-github depends detector not implemented yet!"))
|
|
||||||
return {}
|
|
||||||
|
|
||||||
|
|
||||||
def importDependencies(package, mpackage_cache):
|
def importDependencies(package, mpackage_cache):
|
||||||
if Dependency.query.filter_by(depender=package).count() != 0:
|
if Dependency.query.filter_by(depender=package).count() != 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user