Fix /get_quest, /get_side_quest

This commit is contained in:
Ceda EI 2019-03-16 14:39:44 +05:30
parent cf05499e43
commit 4d610c5bff
1 changed files with 3 additions and 6 deletions

View File

@ -96,9 +96,8 @@ def get_quest(db):
except(KeyError):
return jsonify(errors._400), 400
try:
quest = player.get_quest(qid)
except Exception:
if quest is False:
return jsonify(errors._404), 404
return jsonify(dictify_quest(quest))
@ -120,9 +119,7 @@ def get_side_quest(db):
side_quest = player.get_side_quest(qid)
try:
side_quest = player.get_quest(qid)
except Exception:
if side_quest is False:
return jsonify(errors._404), 404
return jsonify(dictify_quest(side_quest))