From: Joe Guo Date: Mon, 30 Jul 2018 04:11:40 +0000 (+1200) Subject: PEP8: fix W602: deprecated form of raising exception X-Git-Tag: tdb-1.3.17~2086 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c5fa5dc0ee47de0bb6edc39a4dfe2295afb4bff;p=thirdparty%2Fsamba.git PEP8: fix W602: deprecated form of raising exception Signed-off-by: Joe Guo Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/source4/lib/wmi/wmi.py b/source4/lib/wmi/wmi.py index 4bc59cfe41a..ff7170eb586 100644 --- a/source4/lib/wmi/wmi.py +++ b/source4/lib/wmi/wmi.py @@ -30,7 +30,7 @@ def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) - raise AttributeError,name + raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__()