##// 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 98 def get_object(self, g=None):
99 99 # try to load function back into its module:
100 100 if not self.module.startswith('__'):
101 try:
102 __import__(self.module)
103 except ImportError:
104 pass
105 else:
106 g = sys.modules[self.module].__dict__
101 __import__(self.module)
102 g = sys.modules[self.module].__dict__
107 103
108 104 if g is None:
109 105 g = {}
General Comments 0
You need to be logged in to leave comments. Login now