Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError: local variable 'error' referenced before assignment #19

Open
zim514 opened this issue Aug 13, 2021 · 0 comments
Open

Comments

@zim514
Copy link

zim514 commented Aug 13, 2021

Hi

My addon has crash reporting and the crash below gets reported from time to time:

File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.simplecache/lib/simplecache.py" line 67 in get result = self._get_db_cache(endpoint, checksum, cur_time, json_data) File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.simplecache/lib/simplecache.py" line 136 in _get_db_cache cache_data = self._execute_sql(query, (endpoint,)) File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.simplecache/lib/simplecache.py" line 252 in _execute_sql [args] [locals] self._log_msg("_database ERROR ! -- %s" % str(error), xbmc.LOGWARNING) **UnboundLocalError: local variable 'error' referenced before assignment**

I had a quick look at the code and it looks like the log line might just be in the wrong place, but I don't understand it enough to offer a PR, nor which repo is the right one...

It doesn't seem to happen that frequently so it's probably not urgent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant