33 |
|
if (not cfg_params.has_key('USER.copy_data') or int(cfg_params['USER.copy_data']) != 1 ) or \ |
34 |
|
(not cfg_params.has_key('USER.publish_data') or int(cfg_params['USER.publish_data']) != 1 ): |
35 |
|
msg = 'You can not publish data because you did not selected \n' |
36 |
< |
msg += '\t*** copy_data = 1 or publish_data = 1 *** in the crab.cfg file' |
36 |
> |
msg += '\t*** copy_data = 1 and publish_data = 1 *** in the crab.cfg file' |
37 |
> |
raise CrabException(msg) |
38 |
|
|
39 |
|
if not cfg_params.has_key('CMSSW.pset'): |
40 |
|
raise CrabException('Cannot publish output data, because you did not specify the psetname in [CMSSW] of your crab.cfg file') |