gobject-introspection r454 - trunk/giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r454 - trunk/giscanner
- Date: Fri, 22 Aug 2008 19:09:16 +0000 (UTC)
Author: walters
Date: Fri Aug 22 19:09:16 2008
New Revision: 454
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=454&view=rev
Log:
Throw an error if we try to load None
Modified:
trunk/giscanner/glibtransformer.py
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Fri Aug 22 19:09:16 2008
@@ -61,6 +61,8 @@
libname = extract_libtool(libname)
else:
libname = find_library(libname)
+ if not libname:
+ raise ValueError("Failed to find library: %r" % (libname, ))
self._libraries.append(ctypes.cdll.LoadLibrary(libname))
def parse(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]