diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-06-05 09:19:02 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-06-05 09:19:02 +0000 |
| commit | 35bd21f1d2433cd7f8a29a87048cf0e4ca6a02ee (patch) | |
| tree | 00c5323ccbe481d528a340a16070b45101ca9c06 /lib/python/Components | |
| parent | 8ecfc549ce93bc353d6a64f43a0c25dcd65f860e (diff) | |
| download | enigma2-35bd21f1d2433cd7f8a29a87048cf0e4ca6a02ee.tar.gz enigma2-35bd21f1d2433cd7f8a29a87048cf0e4ca6a02ee.zip | |
dont crash when the satellites.xml does not exist or is empty
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/NimManager.py | 2 |
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 |
