Skip to content

Commit

Permalink
v.unpack: Fixed bare 'except' (#4616)
Browse files Browse the repository at this point in the history
* updated E722

* updated .flake8

* Update v.unpack.py
  • Loading branch information
arohanajit authored Oct 30, 2024
1 parent 8649713 commit 9be02ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ per-file-ignores =
scripts/r.semantic.label/r.semantic.label.py: E501
scripts/v.report/v.report.py: E721
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/g.extension/g.extension.py: E501
scripts/v.unpack/v.unpack.py: E501
scripts/v.import/v.import.py: E501
scripts/db.univar/db.univar.py: E501
scripts/i.pansharpen/i.pansharpen.py: E501
Expand Down
2 changes: 1 addition & 1 deletion scripts/v.unpack/v.unpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def main():
tar = tarfile.TarFile.open(name=input_base, mode="r")
try:
data_name = tar.getnames()[0]
except:
except IndexError:
grass.fatal(_("Pack file unreadable"))

if flags["p"]:
Expand Down

0 comments on commit 9be02ee

Please sign in to comment.