Otherwise we would continue with the wrong GUID and filename.
Signed-off-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
if updates:
for update in updates[2:]:
output = re.match(r'Operation (\d+): {(.*)}', update[0])
- if output:
- # print output.group(1), output.group(2)
- guid = output.group(2)
- filename = "%s-{%s}.ldif" % (output.group(1).zfill(4), guid)
+ if not output:
+ raise Exception(update)
+
+ guid = output.group(2)
+ filename = "%s-{%s}.ldif" % (output.group(1).zfill(4), guid)
found = False