Show More
@@ -98,11 +98,7 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: |
|
|||
102 |
|
|
101 | __import__(self.module) | |
103 | except ImportError: |
|
|||
104 | pass |
|
|||
105 | else: |
|
|||
106 |
|
|
102 | g = sys.modules[self.module].__dict__ | |
107 |
|
103 | |||
108 | if g is None: |
|
104 | if g is None: |
General Comments 0
You need to be logged in to leave comments.
Login now