projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1cb0ba0
)
don't catch IOError in readFile()
author
Andreas Oberritter
<obi@saftware.de>
Fri, 10 Jul 2009 11:21:18 +0000
(13:21 +0200)
committer
Andreas Oberritter
<obi@saftware.de>
Fri, 10 Jul 2009 11:21:18 +0000
(13:21 +0200)
lib/python/Components/Harddisk.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Harddisk.py
b/lib/python/Components/Harddisk.py
index
637c889
..
2efdb68
100755
(executable)
--- 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):
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
data = file.read().strip()
file.close()
return data