aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/DreamInfoHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/DreamInfoHandler.py')
-rw-r--r--lib/python/Components/DreamInfoHandler.py2
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()