mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-12-04 20:23:46 +03:00
generator: Do not use bare except
as it also catches SystemExit, InterruptedError, SyntaxError and such. Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
@@ -701,7 +701,7 @@ def print_function_wrapper(module, name, output, export, include):
|
||||
(desc, ret, args, file, mod, cond) = lxc_functions[name]
|
||||
if module == "libvirt-qemu":
|
||||
(desc, ret, args, file, mod, cond) = qemu_functions[name]
|
||||
except:
|
||||
except Exception:
|
||||
print("failed to get function %s infos" % name)
|
||||
return
|
||||
|
||||
@@ -1889,7 +1889,7 @@ def buildWrappers(module):
|
||||
classes.writelines(cached)
|
||||
classes.write("\n")
|
||||
extra.close()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user