aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/NimManager.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-06-05 09:19:02 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-06-05 09:19:02 +0000
commit35bd21f1d2433cd7f8a29a87048cf0e4ca6a02ee (patch)
tree00c5323ccbe481d528a340a16070b45101ca9c06 /lib/python/Components/NimManager.py
parent8ecfc549ce93bc353d6a64f43a0c25dcd65f860e (diff)
downloadenigma2-35bd21f1d2433cd7f8a29a87048cf0e4ca6a02ee.tar.gz
enigma2-35bd21f1d2433cd7f8a29a87048cf0e4ca6a02ee.zip
dont crash when the satellites.xml does not exist or is empty
Diffstat (limited to 'lib/python/Components/NimManager.py')
-rw-r--r--lib/python/Components/NimManager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py
index 9662a10d..4865989d 100644
--- a/lib/python/Components/NimManager.py
+++ b/lib/python/Components/NimManager.py
@@ -38,6 +38,8 @@ class SecConfigure:
self.configuredSatellites.add(orbpos)
def addLNBSimple(self, sec, slotid, diseqcmode, toneburstmode = diseqcParam.NO, diseqcpos = diseqcParam.SENDNO, orbpos = 0, longitude = 0, latitude = 0, loDirection = 0, laDirection = 0, turningSpeed = rotorParam.FAST, useInputPower=True, inputPowerDelta=50):
+ if orbpos is None:
+ return
#simple defaults
sec.addLNB()
tunermask = 1 << slotid