Make class global, so it works in parallel
Casey Deccio
7 years ago
137 | 137 | except: |
138 | 138 | logger.exception('Error analyzing %s' % fmt.humanize_name(name)) |
139 | 139 | return None |
140 | ||
141 | class CustomQueryMixin(object): | |
142 | pass | |
140 | 143 | |
141 | 144 | class BulkAnalyst(object): |
142 | 145 | analyst_cls = PrivateAnalyst |
1063 | 1066 | flush = '-F' in opts |
1064 | 1067 | |
1065 | 1068 | if '-e' in opts: |
1066 | class Foo(object): | |
1067 | edns_options = [_get_ecs_option(opts['-e'])] | |
1068 | query_class_mixin = Foo | |
1069 | CustomQueryMixin.edns_options = [_get_ecs_option(opts['-e'])] | |
1070 | query_class_mixin = CustomQueryMixin | |
1069 | 1071 | else: |
1070 | 1072 | query_class_mixin = None |
1071 | 1073 |