From 0caac56bf3e9b3e4a472bf8b6702daac39bb0e31 Mon Sep 17 00:00:00 2001 From: Magurix Date: Wed, 28 Dec 2022 10:46:23 +0100 Subject: [PATCH] fix diff when one calendar is empty --- vobject/ics_diff.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vobject/ics_diff.py b/vobject/ics_diff.py index 6d48e3b..871641c 100644 --- a/vobject/ics_diff.py +++ b/vobject/ics_diff.py @@ -91,7 +91,11 @@ def processComponentLists(leftList, rightList): matchResult = processComponentPair(comp, rightComp) if matchResult is not None: output.append(matchResult) - + + while rightIndex < rightListSize: + output.append((None, rightList[rightIndex])) + rightIndex += 1 + return output def newComponent(name, body):