diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2009-01-29 11:44:53 +0100 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2009-01-29 11:44:53 +0100 |
| commit | 88b281557a05fb785a42274bf0f3bc328f9eebfd (patch) | |
| tree | 487b42b54d8574941fac92997ff32fe1658b2592 /lib/python/Components/Converter/ServicePosition.py | |
| parent | e79a0c2d96337514acb0763e537235c0ef997100 (diff) | |
| parent | 979f7263f0c8807dce237fcfb5586112c55e5e20 (diff) | |
| download | enigma2-88b281557a05fb785a42274bf0f3bc328f9eebfd.tar.gz enigma2-88b281557a05fb785a42274bf0f3bc328f9eebfd.zip | |
Merge branch 'master' of fraxinas@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 |
