]> git.ipfire.org Git - thirdparty/libvirt.git/commit
python: avoid bare 'except:' clause
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 24 Sep 2019 12:42:51 +0000 (13:42 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 11 Nov 2019 14:24:19 +0000 (14:24 +0000)
commit2ba699cbd59facdb37dcc74a2dd226684aae4d40
tree4da6696b8fb30ca911708aa4c73e3af086673b20
parentcfdd871f268caf536ed7de66c6282645f0c7295a
python: avoid bare 'except:' clause

Exception catching statements should always match on a class name, the
most specific one possible. Rather than analyse the code to look at what
the most specific one is, this just uses the base Exception class.

docs/apibuild.py:255:9: E722 do not use bare 'except'
        except:
        ^
docs/apibuild.py:279:9: E722 do not use bare 'except'
        except:
        ^
...more...

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
build-aux/syntax-check.mk
docs/apibuild.py