asakaxgit / bluecop-xbmc-repo

Automatically exported from code.google.com/p/bluecop-xbmc-repo
0 stars 0 forks source link

Hulu update script: UnboundLocalError: local variable 'startup' referenced before assignment #237

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am using the hulu update script to update my hulu subscriptions / queue at 
startup and every hour. The update at system startup seems to work fine, but 
the run every hour fails with the following error message:

20:03:46 T:2805384288  NOTICE: hulu auto update script add-on has requested an 
update to the library based on the Hulu queue, next queue udpate in 60 minutes
20:03:46 T:2805384288   ERROR: EXCEPTION Thrown (PythonToCppException) : 
-->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnboundLocalError'>
                                            Error Contents: local variable 'startup' referenced before assignment
                                            Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.hululibraryautoupdate/default.py", line 64, in <module>
                                                run_program = Main()
                                              File "/storage/.xbmc/addons/script.hululibraryautoupdate/default.py", line 48, in __init__
                                                if(__addon__.getSetting('update_subscriptions') == 'true' and (alarmtype == "subscription" or startup == "true")):
                                            UnboundLocalError: local variable 'startup' referenced before assignment
                                            -->End of Python script error report<--

Original issue reported on code.google.com by jbreitb...@gmail.com on 25 May 2013 at 7:16