aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@saftware.de>2009-07-10 13:21:18 +0200
committerAndreas Oberritter <obi@saftware.de>2009-07-10 13:21:18 +0200
commitdff868466d255a845eed5aae912ebfaaa61d582d (patch)
tree8599198aab24409480c85e34ec0e57b5aaffb95b /lib/python
parent1cb0ba0d3b77c753f49c71c23293f17e81c0509c (diff)
downloadenigma2-dff868466d255a845eed5aae912ebfaaa61d582d.tar.gz
enigma2-dff868466d255a845eed5aae912ebfaaa61d582d.zip
don't catch IOError in readFile()
Diffstat (limited to 'lib/python')
-rwxr-xr-xlib/python/Components/Harddisk.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py
index 637c8898..2efdb68f 100755
--- a/lib/python/Components/Harddisk.py
+++ b/lib/python/Components/Harddisk.py
@@ -6,11 +6,7 @@ import time
from Components.Console import Console
def readFile(filename):
- try:
- file = open(filename)
- except IOError:
- return ""
-
+ file = open(filename)
data = file.read().strip()
file.close()
return data