diff --git a/LTA/LTAIngest/LTAIngestCommon/job.py b/LTA/LTAIngest/LTAIngestCommon/job.py index f634718bba66e38ffc7ebc5d9033a06aa4518776..f7e8b106462a3644c4a64710cfdf3f1f48ed982b 100755 --- a/LTA/LTAIngest/LTAIngestCommon/job.py +++ b/LTA/LTAIngest/LTAIngestCommon/job.py @@ -85,8 +85,11 @@ def parseJobXml(job_xml): #try to extract a job_group_id job_dict['job_group_id'] = 'unknown_group' - if 'ExportID' in job_dict: - job_dict['job_group_id'] = int(job_dict['ExportID'].split('_')[1]) + try: + if 'ExportID' in job_dict: + job_dict['job_group_id'] = job_dict['ExportID'].split('_')[1] + except: + pass if 'IngestGroupId' in job_dict: job_dict['job_group_id'] = job_dict['IngestGroupId']