From 4a1d280f3b4c234663f8df10dc9483ad8edfbaea Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Thu, 24 Mar 2011 17:01:06 +0000 Subject: [PATCH] Modular bindings: fix binding code generation when the module does not use ns3::Object --- bindings/python/ns3modulegen_core_customizations.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bindings/python/ns3modulegen_core_customizations.py b/bindings/python/ns3modulegen_core_customizations.py index 582efb502..419441fd7 100644 --- a/bindings/python/ns3modulegen_core_customizations.py +++ b/bindings/python/ns3modulegen_core_customizations.py @@ -331,8 +331,10 @@ def Object_customizations(module): ## order to support kwargs only and to translate kwargs into ns3 ## attributes, etc. ## --------------------------------------------------------------------- - Object = module['ns3::Object'] - + try: + Object = module['ns3::Object'] + except KeyError: + return ## add a GetTypeId method to all generatd helper classes def helper_class_hook(helper_class):