Skip to content

Commit

Permalink
fixed 722
Browse files Browse the repository at this point in the history
  • Loading branch information
Arohan Ajit authored and Arohan Ajit committed Oct 21, 2024
1 parent 15134e1 commit 8a35e7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ per-file-ignores =
scripts/db.univar/db.univar.py: E501
scripts/d.frame/d.frame.py: E722
scripts/i.pansharpen/i.pansharpen.py: E722, E501
scripts/r.in.srtm/r.in.srtm.py: E722
scripts/r.fillnulls/r.fillnulls.py: E722
scripts/d.rast.edit/d.rast.edit.py: E722
scripts/v.what.strds/v.what.strds.py: E501
Expand Down
4 changes: 2 additions & 2 deletions scripts/r.in.srtm/r.in.srtm.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def main():
try:
zf = zfile.ZipFile(zipfile)
zf.extractall()
except:
except (zfile.BadZipfile, zfile.LargeZipFile, PermissionError):
gs.fatal(_("Unable to unzip file."))

gs.message(_("Converting input file to BIL..."))
Expand Down Expand Up @@ -277,7 +277,7 @@ def main():

try:
gs.run_command("r.in.gdal", input=bilfile, out=tileout)
except:
except gs.CalledModuleError:
gs.fatal(_("Unable to import data"))

# nice color table
Expand Down

0 comments on commit 8a35e7f

Please sign in to comment.