215 |
|
if self.flag_continue and options.has_key("-cfg"): |
216 |
|
del options['-cfg'] |
217 |
|
pass |
218 |
+ |
crab = None |
219 |
|
try: |
220 |
|
crab = Crab(options) |
221 |
|
crab.run() |
222 |
< |
del crab |
222 |
< |
common.apmon.free() |
222 |
> |
crab.delete() |
223 |
|
print 'Log file is %s%s.log'%(common.work_space.logDir(),common.prog_name) |
224 |
|
print '\n############################## E N D ####################################\n' |
225 |
|
except CrabException, e: |
226 |
+ |
crab.delete() |
227 |
|
print '\n' + common.prog_name + ': ' + str(e) + '\n' |
228 |
|
pass |
229 |
|
pass |
230 |
|
pass |
231 |
|
|
231 |
– |
#common.apmon.free() |
232 |
|
|
233 |
|
########################################################################### |
234 |
|
if __name__ == '__main__': |