diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-04-29 23:06:49 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-04-29 23:06:49 +0000 |
| commit | 417813b4955d2f48f708b3d114cab703bb5965f7 (patch) | |
| tree | 054b20b13e00de8ffd30822bd179346773f4a6ef /lib/python | |
| parent | 90d497804795ef91efcf21fba604fed3d81aed45 (diff) | |
| download | enigma2-417813b4955d2f48f708b3d114cab703bb5965f7.tar.gz enigma2-417813b4955d2f48f708b3d114cab703bb5965f7.zip | |
check for file existence
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/DreamInfoHandler.py | 2 |
1 files changed, 2 insertions, 0 deletions
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() |
