def incrementProcVer(cloneArgs, requestArgs):
    """
    Increment the ProcessingVersion value for any requests cloned via
    clone API, except if it's a Resubmission request.
    TODO: ProcVer can be a dict at top level, until this #6881 gets fixed
    """
    if cloneArgs['RequestType'] == 'Resubmission' or requestArgs.get(
        'RequestType') == 'Resubmission':
        return
    for key in cloneArgs:
        if key == 'ProcessingVersion':
            if isinstance(cloneArgs[key], int):
                cloneArgs[key] += 1
            elif isinstance(cloneArgs[key], dict):
                for taskname in cloneArgs[key]:
                    cloneArgs[key][taskname] += 1
        elif isinstance(cloneArgs[key], dict
            ) and 'ProcessingVersion' in cloneArgs[key]:
            cloneArgs[key]['ProcessingVersion'] += 1
    return
