diff options
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 = "" |
