diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-05-02 16:58:16 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-05-02 16:58:16 +0000 |
| commit | ebd1552cdd3e60d5eb21f97e46570de2e17ed19f (patch) | |
| tree | a91da3df6e054941c1649af6254ce78d63a284d2 /lib/python | |
| parent | 02d30e2d4b03a699bd5ba10ac149f96a6934cab1 (diff) | |
| download | enigma2-ebd1552cdd3e60d5eb21f97e46570de2e17ed19f.tar.gz enigma2-ebd1552cdd3e60d5eb21f97e46570de2e17ed19f.zip | |
don't crash if time is *really* invalid
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/ServicePosition.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/python/Components/ServicePosition.py b/lib/python/Components/ServicePosition.py index cb444921..ba87e3ef 100644 --- 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 - 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 = "" |
