diff --git a/server/app.py b/server/app.py index d2cdce1..900469f 100644 --- a/server/app.py +++ b/server/app.py @@ -16,7 +16,7 @@ from flask_jwt_extended import ( from server.analysis.stat_gen import StatGen from server.analysis.enrichment import DatasetEnrichment -from server.exceptions import NotAuthorisedException, NotExistentDatasetException +from server.exceptions import NotAuthorisedException, NonExistentDatasetException from server.db.database import PostgresConnector from server.core.auth import AuthManager from server.core.datasets import DatasetManager @@ -162,7 +162,7 @@ def get_dataset(dataset_id): return jsonify(filtered_dataset), 200 except NotAuthorisedException: return jsonify({"error": "User is not authorised to access this content"}), 403 - except NotExistentDatasetException: + except NonExistentDatasetException: return jsonify({"error": "Dataset does not exist"}), 404 except Exception: print(traceback.format_exc()) diff --git a/server/exceptions.py b/server/exceptions.py index e63be49..10a9f9f 100644 --- a/server/exceptions.py +++ b/server/exceptions.py @@ -1,7 +1,7 @@ class NotAuthorisedException(Exception): pass -class NotExistentDatasetException(Exception): +class NonExistentDatasetException(Exception): pass class DatabaseNotConfiguredException(Exception):