Skip to content

Commit

Permalink
v.import: Fixed E722 bare except (#4614)
Browse files Browse the repository at this point in the history
  • Loading branch information
arohanajit authored Oct 29, 2024
1 parent e6fd110 commit 6e5643d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ per-file-ignores =
scripts/db.out.ogr/db.out.ogr.py: F841
scripts/g.extension/g.extension.py: F841, E722, E501
scripts/v.unpack/v.unpack.py: E722, E501
scripts/v.import/v.import.py: E722, E501
scripts/v.import/v.import.py: E501
scripts/db.univar/db.univar.py: E501
scripts/i.pansharpen/i.pansharpen.py: E501
scripts/v.what.strds/v.what.strds.py: E501
Expand Down
4 changes: 2 additions & 2 deletions scripts/v.import/v.import.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def main():
if OGRdatasource.lower().endswith("gml"):
try:
from osgeo import gdal
except:
except ImportError:
gs.fatal(
_(
"Unable to load GDAL Python bindings (requires package "
Expand Down Expand Up @@ -338,7 +338,7 @@ def main():
if OGRdatasource.lower().endswith("gml"):
try:
from osgeo import gdal
except:
except ImportError:
gs.fatal(
_(
"Unable to load GDAL Python bindings (requires package "
Expand Down

0 comments on commit 6e5643d

Please sign in to comment.