def cleanup (opts):
  try:
    jobid = opts["__jobid"]
    path = (TASK_QUEUE_DIR, jobid) % "%s/%s.job"
    shutil.move(path, TASK_COMPLETED_DIR)
  except KeyError:
    pass
  except AttributeError:
    # non-job opts don't have __getitem__
    pass
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/task.py/cleanup/swapped operands of `%`