Skip to content

Commit

Permalink
fix bug introduced by merge with master.
Browse files Browse the repository at this point in the history
  • Loading branch information
JPBergsma committed Nov 30, 2022
1 parent 3a908bc commit 1e49fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimade/server/entry_collections/entry_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def find(
results = self.resource_mapper.deserialize(results)

if single_entry:
raw_results = raw_results[0] if raw_results else None # type: ignore[assignment]
results = results[0] if results else None # type: ignore[assignment]

if data_returned > 1:
raise NotFound(
Expand Down

0 comments on commit 1e49fb8

Please sign in to comment.