support/scripts/pkg-stats: fix flake8 E722 warning
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 24 Mar 2020 13:54:35 +0000 (14:54 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 24 Mar 2020 14:27:57 +0000 (15:27 +0100)
commit3b5bc480a59a100e835b8d7739ce71c4f14d2dba
tree71f02ec70ebfab65c6ed7ba98ceabe689eb36f50
parentf7f33771b3a7889e5781b30830b1400489880252
support/scripts/pkg-stats: fix flake8 E722 warning

flake8 complains with:

  support/scripts/pkg-stats:339:13: E722 do not use bare 'except'

Due to the construct:

  try:
     something
  except:
     print("some message")
     raise

Which is in fact OK because the exception is re-raised. This issue is
discussed at https://github.com/PyCQA/pycodestyle/issues/703, and the
general agreement is that these "bare except" are OK, and should be
ignored from flake8 using a noqa statement.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/scripts/pkg-stats