local variable 'labeltouse' referenced before assignment ?

Posted on
Sun Jun 24, 2018 7:23 am
autolog offline
Posts: 2662
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT+0]

local variable 'labeltouse' referenced before assignment ?

Running version 0.8.1. :)

I am now and again getting these messages in the Indigo log:
FindFriendsMini Exception in refreshDataforDev: local variable 'labeltouse' referenced before assignment
FindFriendsMini Error Exception:
Traceback (most recent call last):
File "plugin.py", line 1122, in refreshDataForDev
{'key': 'labels', 'value': labeltouse},
UnboundLocalError: local variable 'labeltouse' referenced before assignment

FindFriendsMini Possibility missing some data from icloud: Is your account setup with FindFriends enabled on iOS/Mobile device?

One of our iPhones is currently showing as offline - just in case that is relevant. :)

Posted on
Sun Jun 24, 2018 3:19 pm
GlennNZ offline
Posts: 523
Joined: Dec 07, 2014
Location: Central Coast, Australia

local variable 'labeltouse' referenced before assignment ?

autolog wrote:
Running version 0.8.1.

I am now and again getting these messages in the Indigo log:
FindFriendsMini Exception in refreshDataforDev: local variable 'labeltouse' referenced before assignment
FindFriendsMini Error Exception:
Traceback (most recent call last):
File "plugin.py", line 1122, in refreshDataForDev
{'key': 'labels', 'value': labeltouse},
UnboundLocalError: local variable 'labeltouse' referenced before assignment

FindFriendsMini Possibility missing some data from icloud: Is your account setup with FindFriends enabled on iOS/Mobile device?

One of our iPhones is currently showing as offline - just in case that is relevant. :)


Thanks. Sorry! had fixed that a while ago and was just testing another couple of changes.

https://github.com/Ghawken/IndigoPlugin ... tree/NoAPI

Can test this 0.8.6. Version which includes this check and a few other null-data checks.

Will post it as release soon...

Glenn
Last edited by GlennNZ on Sun Jun 24, 2018 4:29 pm, edited 1 time in total.

Posted on
Sun Jun 24, 2018 3:59 pm
autolog offline
Posts: 2662
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT+0]

Re: local variable 'labeltouse' referenced before assignment

Thanks - I have installed the update and will monitor it over the next day or so. :)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests