Fix an crash in conflict detection when no movie is selected

This commit is contained in:
djib committed 2023-02-04 10:34:17 +01:00
1 parent 2f0ce4ded4
commit 9c4d01eba2
1 file changed
+1
+1
View File
@@ -305,6 +305,7 @@ class FreeboxMoviePlanner:
def checkForConflicts(self):
programmed_movies = self.freebox.Pvr.Getting_the_list_of_precords()
if programmed_movies:
conflicting_movies = [m for m in programmed_movies if m['conflict']]
if conflicting_movies:
print(