UnboundLocalError: local variable 'sessions_temp' referenced before assignment #2
The code throws this error after demanding "sessions" to the bot:
Traceback (most recent call last):
File "xmpp.py", line 104, in
sessions = ejabberd.user_sessions_info(mention.acct, bot.mastodon_hostname)
File "/home/mastodon/bots/xmppbot/ejabberdapi.py", line 213, in user_sessions_info
sessions = self.__json_allow_dict_attrs(sessions_temp)
UnboundLocalError: local variable 'sessions_temp' referenced before assignment
If there is not any active session, the response of the Ejabberd API is :
so sessions_temp is not referenced.
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?