mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
Fix task/logic errors not being reported in post_release_check_update
This commit is contained in:
parent
966023be17
commit
6b34a91241
@ -216,7 +216,6 @@ def post_release_check_update(self, release: PackageRelease, path):
|
|||||||
|
|
||||||
# Update game support
|
# Update game support
|
||||||
if package.type == PackageType.MOD or package.type == PackageType.TXP:
|
if package.type == PackageType.MOD or package.type == PackageType.TXP:
|
||||||
try:
|
|
||||||
resolver = GameSupportResolver(db.session)
|
resolver = GameSupportResolver(db.session)
|
||||||
|
|
||||||
game_is_supported = {}
|
game_is_supported = {}
|
||||||
@ -239,12 +238,10 @@ def post_release_check_update(self, release: PackageRelease, path):
|
|||||||
resolver.set_supported(package, game_is_supported, 10)
|
resolver.set_supported(package, game_is_supported, 10)
|
||||||
if package.type == PackageType.MOD:
|
if package.type == PackageType.MOD:
|
||||||
resolver.update(package)
|
resolver.update(package)
|
||||||
except LogicError as e:
|
|
||||||
raise TaskError(e.message)
|
|
||||||
|
|
||||||
return tree
|
return tree
|
||||||
|
|
||||||
except MinetestCheckError as err:
|
except (MinetestCheckError, TaskError, LogicError) as err:
|
||||||
db.session.rollback()
|
db.session.rollback()
|
||||||
|
|
||||||
task_url = url_for('tasks.check', id=self.request.id)
|
task_url = url_for('tasks.check', id=self.request.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user