Skip to content

Commit

Permalink
removed e722
Browse files Browse the repository at this point in the history
  • Loading branch information
Arohan Ajit authored and Arohan Ajit committed Oct 31, 2024
1 parent ba0a495 commit 91b9284
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ per-file-ignores =
python/grass/*/*/__init__.py: F403
python/grass/*/*/*/__init__.py: F403
# E402 module level import not at top of file
scripts/r.in.wms/wms_gdal_drv.py: E722
scripts/r.in.wms/wms_drv.py: E402, E722
scripts/r.in.wms/srs.py: E722
scripts/r.in.wms/wms_drv.py: E402
scripts/r.semantic.label/r.semantic.label.py: E501
scripts/db.out.ogr/db.out.ogr.py: F841
scripts/g.extension/g.extension.py: E501
Expand Down
2 changes: 1 addition & 1 deletion scripts/r.in.wms/srs.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, srs):
# code is always the last value
try:
self.code = int(values[-1])
except:
except (IndexError, ValueError):
self.code = values[-1]

elif len(values) == 2: # it's an authority:code code
Expand Down
2 changes: 1 addition & 1 deletion scripts/r.in.wms/wms_drv.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

try:
from osgeo import gdal
except:
except ImportError:
gs.fatal(
_(
"Unable to load GDAL Python bindings (requires package 'python-gdal' "
Expand Down
2 changes: 1 addition & 1 deletion scripts/r.in.wms/wms_gdal_drv.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

try:
from osgeo import gdal
except:
except ImportError:
gs.fatal(
_(
"Unable to load GDAL Python bindings (requires package 'python-gdal' being "
Expand Down

0 comments on commit 91b9284

Please sign in to comment.