From 35bd21f1d2433cd7f8a29a87048cf0e4ca6a02ee Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 5 Jun 2008 09:19:02 +0000 Subject: dont crash when the satellites.xml does not exist or is empty --- lib/python/Components/NimManager.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/python/Components') 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 -- cgit v1.2.3