Skip to content

Commit

Permalink
Support older versions of fiona
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Aug 11, 2021
1 parent b801186 commit 0b1266e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchgeo/datasets/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def __init__(
(minx, maxx), (miny, maxy) = fiona.transform.transform(
src.crs, self.crs.to_dict(), [minx, maxx], [miny, maxy]
)
except fiona.errors.DriverError:
except (fiona.errors.DriverError, fiona.errors.FionaValueError):
# Skip files that fiona is unable to read
continue
else:
Expand Down

0 comments on commit 0b1266e

Please sign in to comment.