Resolve E722 do not use bare except
[integration/test.git] / tools / distchanges / gerritquery.py
index b6cddc5cdb22fd526cab938ec18994779f6609b8..9f5b7f455ad30fd48d69c1eaf1d470bbcd84faa8 100644 (file)
@@ -82,7 +82,7 @@ class GerritQuery:
                 return string.encode(encoding or 'utf-8', 'replace')
             else:
                 return str(string)
-        except:
+        except Exception:
             return str(string)
 
     def run_command_status(self, *argv, **kwargs):