diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-01-27 15:57:27 +0100 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-01-27 15:57:27 +0100 |
| commit | 09f66522e9f51ac8fc7921bd77ba36a9d9d3d4b3 (patch) | |
| tree | 2e29b0fe36b64ab79be719c03c8e25ba82398f7d /lib/python/Components/Converter/ServicePosition.py | |
| parent | fc102394e60824f5c07da710d36ba28eaf160c72 (diff) | |
| parent | e5423277b5d9dd89918a9b123c10d31057b3dc52 (diff) | |
| download | enigma2-09f66522e9f51ac8fc7921bd77ba36a9d9d3d4b3.tar.gz enigma2-09f66522e9f51ac8fc7921bd77ba36a9d9d3d4b3.zip | |
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Components/Converter/ServicePosition.py')
| -rw-r--r-- | lib/python/Components/Converter/ServicePosition.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/Components/Converter/ServicePosition.py b/lib/python/Components/Converter/ServicePosition.py index d7a55dae..2bcc5492 100644 --- a/lib/python/Components/Converter/ServicePosition.py +++ b/lib/python/Components/Converter/ServicePosition.py @@ -1,7 +1,7 @@ from Converter import Converter from Poll import Poll from enigma import iPlayableService -from Components.Element import cached +from Components.Element import cached, ElementError class ServicePosition(Converter, Poll, object): TYPE_LENGTH = 0 @@ -35,7 +35,7 @@ class ServicePosition(Converter, Poll, object): elif type == "Gauge": self.type = self.TYPE_GAUGE else: - raise "type must be {Length|Position|Remaining|Gauge} with optional arguments {Negate|Detailed|ShowHours|NoSeconds}" + raise ElementError("type must be {Length|Position|Remaining|Gauge} with optional arguments {Negate|Detailed|ShowHours|NoSeconds}") self.poll_enabled = self.type != self.TYPE_LENGTH |
