diff --git a/helm-quarry/values.yaml b/helm-quarry/values.yaml index 7972559..36d92d9 100644 --- a/helm-quarry/values.yaml +++ b/helm-quarry/values.yaml @@ -1,6 +1,6 @@ web: repository: 'quay.io/wikimedia-quarry/quarry' - tag: pr-110 # web tag managed by github actions + tag: pr-111 # web tag managed by github actions resources: requests: @@ -12,7 +12,7 @@ web: worker: repository: 'quay.io/wikimedia-quarry/quarry' - tag: pr-110 # worker tag managed by github actions + tag: pr-111 # worker tag managed by github actions resources: requests: memory: "400Mi" diff --git a/quarry/web/run.py b/quarry/web/run.py index 4b383f7..42ba5cf 100644 --- a/quarry/web/run.py +++ b/quarry/web/run.py @@ -36,15 +36,17 @@ def output_result(qrun_id, resultset_id=0, format="json"): if not qrun: response = Response("No such query_run id", status=404) else: - reader = SQLiteResultReader( - qrun, current_app.config["OUTPUT_PATH_TEMPLATE"] - ) try: + reader = SQLiteResultReader( + qrun, current_app.config["OUTPUT_PATH_TEMPLATE"] + ) response = output.get_formatted_response( format, qrun, reader, resultset_id ) except sqlite3.OperationalError as e: - if e.args[0].startswith("no such table"): + if e.args[0].startswith("no such table") or e.args[0].startswith( + "unable to open database file" + ): response = Response("No such resultset id", status=404) else: raise