git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
02d30e2
)
don't crash if time is *really* invalid
author
Felix Domke
<tmbinc@elitedvb.net>
Tue, 2 May 2006 16:58:16 +0000
(16:58 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Tue, 2 May 2006 16:58:16 +0000
(16:58 +0000)
lib/python/Components/ServicePosition.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/ServicePosition.py
b/lib/python/Components/ServicePosition.py
index cb4449210d0a04d942aaf00286a408908d5bd30a..ba87e3ef680df8438255f6a9a38352115d41a18b 100644
(file)
--- a/
lib/python/Components/ServicePosition.py
+++ b/
lib/python/Components/ServicePosition.py
@@
-65,8
+65,11
@@
class ServicePosition(PerServiceDisplay):
l = self.get(self.TYPE_POSITION)
if l != -1:
l += self.relative_base
l = self.get(self.TYPE_POSITION)
if l != -1:
l += self.relative_base
- t = time.localtime(l)
- timestr = "%2d:%02d:%02d" % (t.tm_hour, t.tm_min, t.tm_sec)
+ try:
+ t = time.localtime(l)
+ timestr = "%2d:%02d:%02d" % (t.tm_hour, t.tm_min, t.tm_sec)
+ except ValueError:
+ timestr = ""
else:
timestr = ""
else:
timestr = ""