Skip to content

Commit

Permalink
Fix remaining Catalog.stac_io reference
Browse files Browse the repository at this point in the history
  • Loading branch information
duckontheweb committed Aug 14, 2021
1 parent 6e5ee27 commit 10b31cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pystac/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ def from_file(cls, href: str, stac_io: Optional[pystac.StacIO] = None) -> "Catal
result = super().from_file(href, stac_io)
if not isinstance(result, Catalog):
raise pystac.STACTypeError(f"{result} is not a {Catalog}.")
result.stac_io = stac_io
result._stac_io = stac_io

return result

Expand Down

0 comments on commit 10b31cd

Please sign in to comment.