python: add proper error handling to loaded_modules()
authorAndy Grover <andy@groveronline.com>
Mon, 19 Mar 2012 04:49:07 +0000 (21:49 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 25 Mar 2014 03:34:14 +0000 (00:34 -0300)
commit705187f17ba8713327b200d8b62f88397e3a0715
tree06ed3bc11171b69311897f21b4e4eaaad459c722
parent31aa6834bad02bd911c57c7278aac1fe792f1e51
python: add proper error handling to loaded_modules()

We need to check the result of basically all Py* calls and cleanup
properly if they fail.
libkmod/python/libkmod.c