##// END OF EJS Templates
Don't catch ImportError when trying to unpack module functions...
MinRK -
Show More
@@ -98,12 +98,8 b' class CannedFunction(CannedObject):'
98 def get_object(self, g=None):
98 def get_object(self, g=None):
99 # try to load function back into its module:
99 # try to load function back into its module:
100 if not self.module.startswith('__'):
100 if not self.module.startswith('__'):
101 try:
101 __import__(self.module)
102 __import__(self.module)
102 g = sys.modules[self.module].__dict__
103 except ImportError:
104 pass
105 else:
106 g = sys.modules[self.module].__dict__
107
103
108 if g is None:
104 if g is None:
109 g = {}
105 g = {}
General Comments 0
You need to be logged in to leave comments. Login now