Fix for service

This commit is contained in:
Arne Bultman 2012-01-06 19:50:57 +01:00
parent 3bdab282b8
commit 45cf03cb16

View file

@ -13,7 +13,8 @@ class BluRaySettings:
self.log.info('reading settings')
params = self.getParams()
self.handle = int(sys.argv[1])
if len(sys.argv) >= 2:
self.handle = int(sys.argv[1])
self.paramUrl = self.getParam(params, 'url')
self.paramName = self.getParam(params, "name")
self.paramMode = self.getIntParam(params, "mode")