Skip to content

Commit

Permalink
r.fillnulls: Removed bare except from r.fillnulls (#4581)
Browse files Browse the repository at this point in the history
  • Loading branch information
arohanajit authored Oct 25, 2024
1 parent 86693f6 commit 1a04b64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,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.fillnulls/r.fillnulls.py: E722
scripts/v.what.strds/v.what.strds.py: E501
# Line too long (esp. module interface definitions)
scripts/*/*.py: E501
Expand Down
8 changes: 4 additions & 4 deletions scripts/r.fillnulls/r.fillnulls.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def main():
type="area",
quiet=quiet,
)
except:
except CalledModuleError:
gs.fatal(
_(
"abandoned. Removing temporary maps, restoring "
Expand Down Expand Up @@ -481,7 +481,7 @@ def main():
tmp_rmaps.remove(holename + "_edges")
tmp_rmaps.remove(holename + "_dem")
tmp_vmaps.remove(holename)
except:
except ValueError:
pass
gs.warning(
_(
Expand Down Expand Up @@ -545,7 +545,7 @@ def main():
tmp_rmaps.remove(holename + "_grown")
tmp_rmaps.remove(holename + "_edges")
tmp_rmaps.remove(holename + "_dem")
except:
except ValueError:
pass
try:
gs.run_command(
Expand All @@ -569,7 +569,7 @@ def main():
)
try:
tmp_vmaps.remove(holename)
except:
except ValueError:
pass
try:
gs.run_command(
Expand Down

0 comments on commit 1a04b64

Please sign in to comment.