Skip to content

Commit

Permalink
Use a more normal loop
Browse files Browse the repository at this point in the history
Co-authored-by: Selman Özleyen <[email protected]>
  • Loading branch information
ivirshup and selmanozleyen authored Sep 4, 2023
1 parent 73bec28 commit c081bf6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions anndata/_io/specs/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,8 @@ def find_writer(self, dest_type, elem, modifiers):
for pattern in _iter_patterns(elem):
if self.registry.has_writer(dest_type, pattern, modifiers):
return self.registry.get_writer(dest_type, pattern, modifiers)
else:
# Raises IORegistryError
self.registry.get_writer(dest_type, type(elem), modifiers)
# Raises IORegistryError
return self.registry.get_writer(dest_type, type(elem), modifiers)

@report_write_key_on_error
def write_elem(
Expand Down

0 comments on commit c081bf6

Please sign in to comment.