Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ all = [
"dask[dataframe]",
"duckdb <1.4.0", # https://github.com/bluesky/tiled/issues/1144
"entrypoints",
"fastapi >=0.115.8",
"fastapi >=0.115.8,<0.122",
"h5netcdf",
"h5py",
"hdf5plugin",
Expand Down Expand Up @@ -245,7 +245,7 @@ server = [
"jinja2",
"jmespath",
"lz4",
"minio",
"minio != 7.2.19",
"ndindex",
"numba >=0.59.0", # indirect, pinned to assist uv solve
"numcodecs",
Expand Down
4 changes: 0 additions & 4 deletions tiled/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,3 @@ def __ge__(self, value):
# Note: __contains__ cannot be supported because the language coerces
# the result of __contains__ to be a literal boolean. We are not
# allowed to return a custom type.


class QueryValueError(ValueError):
pass
4 changes: 2 additions & 2 deletions tiled/server/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from .. import queries
from ..adapters.mapping import MapAdapter
from ..links import links_for_node
from ..queries import KeyLookup, QueryValueError
from ..queries import KeyLookup
from ..serialization import register_builtin_serializers
from ..structures.core import Spec, StructureFamily
from ..utils import (
Expand Down Expand Up @@ -184,7 +184,7 @@ async def apply_search(tree, filters, query_registry):
key_lookups.append(query.key)
continue
tree = tree.search(query)
except QueryValueError as err:
except TypeError as err:
raise HTTPException(
status_code=HTTP_400_BAD_REQUEST, detail=err.args[0]
)
Expand Down