Changeset 2169

Show
Ignore:
Timestamp:
06/16/07 06:56:46 (1 year ago)
Author:
abaumann
Message:

fix silly bug: if there was no recursion rule we claimed there were too many

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/moto-sync/motosync.py

    r2167 r2169  
    457457    ret['exceptions'] = [] 
    458458 
    459     # can't support multiple rules 
    460     if len(rulenodes) != 1: 
     459    if len(rulenodes) == 0: 
     460        return ret # no recursion 
     461    elif len(rulenodes) > 1: 
     462        # can't support multiple rules 
    461463        raise UnsupportedDataError('Unhandled recursion: too many rules') 
    462464    rulenode = rulenodes[0]