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
An exception is thrown if you try to call .roll or .dice:
(4:57:10 PM) creftos: .dice
(4:57:10 PM) Willie: TypeError: expected string or buffer (file "/usr/lib64/python2.7/re.py", line 177, in findall)
And in the logs:
Traceback (most recent call last):
File "/home/bdc/workspace/willie/willie/bot.py", line 741, in call
exit_code = func(willie, trigger)
File "/home/bdc/workspace/willie/willie/modules/dice.py", line 175, in roll
dice_expressions = re.findall(dice_regexp, arg_str)
File "/usr/lib64/python2.7/re.py", line 177, in findall
return _compile(pattern, flags).findall(string)
TypeError: expected string or buffer
Instead of throwing an exception, Willie should fail gracefully and inform the user of the kind of input that is expected.
An exception is thrown if you try to call .roll or .dice:
And in the logs:
Instead of throwing an exception, Willie should fail gracefully and inform the user of the kind of input that is expected.
Additional Information:
Willie v. 4.5.1
OS: Fedora release 20 (Heisenbug)
Kernel Version: 3.16.2-201.fc20.x86_64
The text was updated successfully, but these errors were encountered: