Skip to content

Commit

Permalink
Fix bug in default extension identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Feb 14, 2019
1 parent 28b4ed8 commit f807bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specutils/io/registers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def decorator(func):
"explicit identifier. Creating identifier using "
"list of compatible extensions".format(
label, dtype.__name__))
id_func = lambda *args, **kwargs: any([args[0].endswith(x)
id_func = lambda *args, **kwargs: any([args[1].endswith(x)
for x in extensions])
# Otherwise, create a dummy identifier
else:
Expand Down

0 comments on commit f807bc3

Please sign in to comment.