You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just accidently typed "/otr smp respond some secret" (unquoted secret) and received a very unhelpful backtrace:
python: stdout/stderr: Traceback (most recent call last):
python: stdout/stderr: File "/home/weechat/.weechat/python/autoload/otr.py", line 1344, in command_cb
python: stdout/stderr: if secret:
python: stdout/stderr: UnboundLocalError: local variable 'secret' referenced before assignment
The simple fix would be to suggest to use quotes in the hint («Respond with: /otr smp respond "<answer>"»?). But we should probably look at all the commands again and see if we can change the interface to avoid those kind of ambiguities. This might also a good opportunity to look at the command parsing code in general. It is still very hard to read and audit.
The text was updated successfully, but these errors were encountered:
Just accidently typed "/otr smp respond some secret" (unquoted secret) and received a very unhelpful backtrace:
The simple fix would be to suggest to use quotes in the hint («Respond with: /otr smp respond "<answer>"»?). But we should probably look at all the commands again and see if we can change the interface to avoid those kind of ambiguities. This might also a good opportunity to look at the command parsing code in general. It is still very hard to read and audit.
The text was updated successfully, but these errors were encountered: