- fedivers
- https://mastodont.cat/@spla
-
programar és divertit! coding is funny!
- Joined on
2022-06-16
The code is passing the hostname of the Mastodon account
The code is passing the hostname of the Mastodon account
UnboundLocalError: local variable 'sessions_temp' referenced before assignment
UnboundLocalError: local variable 'sessions_temp' referenced before assignment
If there is not any active session, the response of the Ejabberd API is []:
(Pdb) response.json() []
so sessions_temp is not referenced.
UnboundLocalError: local variable 'sessions_temp' referenced before assignment
'Ejabberd' object has no attribute 'account_exists'
'Ejabberd' object has no attribute 'account_exists'
Bot is not replying 'register' keyword because this bug. It's right, that attribute don't exists.