mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-08 03:58:12 +08:00
#87 remove version pins for markupsafe, flask and werkzeug
also remove dependency on flask-api
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
import logging
|
||||
import subprocess
|
||||
|
||||
from flask_api import status
|
||||
from http import HTTPStatus
|
||||
|
||||
from cellxgene_gateway.cache_entry import CacheEntryStatus
|
||||
from cellxgene_gateway.dir_util import make_annotations
|
||||
@@ -76,10 +76,10 @@ class SubprocessBackend:
|
||||
or "Could not open file" in stderr
|
||||
):
|
||||
message = "File was invalid."
|
||||
http_status = status.HTTP_400_BAD_REQUEST
|
||||
http_status = HTTPStatus.BAD_REQUEST
|
||||
else:
|
||||
message = "Cellxgene failed to launch dataset."
|
||||
http_status = status.HTTP_500_INTERNAL_SERVER_ERROR
|
||||
http_status = HTTPStatus.INTERNAL_SERVER_ERROR
|
||||
|
||||
cache_entry.status = CacheEntryStatus.error
|
||||
cache_entry.set_error(message, stderr, http_status)
|
||||
|
||||
Reference in New Issue
Block a user