FAQ | This is a LIVE service | Changelog

Commit d4a65652 authored by Jon Marshall's avatar Jon Marshall
Browse files

Added logging and also raise an error if no matches for the destination specified

parent dc3446cc
......@@ -441,9 +441,15 @@ class DatasetProcessor(Thread):
if args.init:
send_jobs = [job for job in send_jobs \
if set(args.init.split(':')).issubset(job.split(':')]
if not send_jobs:
self.log.error('Destinaton %s not found', args.init)
raise KeyError
if args.resend:
send_jobs = [job for job in send_jobs \
if set(args.resend.split(':')).issubset(job.split(':')]
if not send_jobs:
self.log.error('Destinaton %s not found', args.resend)
raise KeyError
except KeyError:
self.log.debug('No send jobs specified')
return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment