From 417813b4955d2f48f708b3d114cab703bb5965f7 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Tue, 29 Apr 2008 23:06:49 +0000 Subject: [PATCH] check for file existence --- lib/python/Components/DreamInfoHandler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/python/Components/DreamInfoHandler.py b/lib/python/Components/DreamInfoHandler.py index 33b86bb2..3c014b8a 100644 --- a/lib/python/Components/DreamInfoHandler.py +++ b/lib/python/Components/DreamInfoHandler.py @@ -205,6 +205,8 @@ class DreamInfoHandler: self.mergeServices(service["directory"], service["name"]) def readfile(self, filename): + if not os.path.isfile(filename): + return [] fd = open(filename) lines = fd.readlines() fd.close() -- 2.30.2