From c224c2a18e15eaa4e41377b0ed03c4807e25aa2d Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 1 Nov 2007 23:33:21 +0000 Subject: [PATCH 1/1] fix frontend number query --- lib/python/Components/Converter/FrontendInfo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/python/Components/Converter/FrontendInfo.py b/lib/python/Components/Converter/FrontendInfo.py index 35588027..796ac330 100644 --- a/lib/python/Components/Converter/FrontendInfo.py +++ b/lib/python/Components/Converter/FrontendInfo.py @@ -92,7 +92,8 @@ class FrontendInfo(Converter, object): return 2 return -1 elif self.type == self.SLOT_NUMBER: - return self.source.slot_number or -1 + num = self.source.slot_number + return num is None and -1 or num range = 65536 value = property(getValue) -- 2.30.2