From: Stefan Pluecken Date: Tue, 29 Apr 2008 23:06:49 +0000 (+0000) Subject: check for file existence X-Git-Tag: 2.6.0~1277 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/417813b4955d2f48f708b3d114cab703bb5965f7 check for file existence --- 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()