1
0
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:
Philipp Hahn
2020-04-27 10:29:24 +02:00
committed by Jano Tomko
parent a1f2c432a8
commit e16eab444f

View File

@@ -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
#