roundabout
roundabout copied to clipboard
Logging issue?
Hello,
Trying to install from master (which may be my mistake), I end up with this:
[dmwm] /afs/cern.ch/user/m/meloam/roundabout > python2.6 roundabout --config_file=roundabout.cfg run No handlers could be found for logger "github2.request" [13-09-2011 11:10:45] ERROR: Unknown error: nothing to repeat
And it dies. Do I have something misconfigured?
Thanks
So, I hunted this more ... the try/except wrapping around the roundabout.main.main() was hiding what the problem was. Turns out, it's not a logging thing. I changed the lgtm string to "+1", which blows up at:
Traceback (most recent call last):
File "bin/roundabout", line 25, in
Obnoxiously, apparently sre_constants.error doesn't inherit from Exception, so the try/except clause in main() didn't match, so the error was being eaten. Is it necessary to have a regular expression in github.client? If not, i'll make a patch for you.
Thanks
You're right, case-insensitivity should be handled better there perhaps by replacing the lgtm comparison with: https://gist.github.com/7e32d9fe5f8d183c92df
Well, it's not necessarily a case-insensitivity problem .. the string from the user gets passed into a regex. I had the string "+1", which got substituted to "^+1$" in the regex, which doesn't compile. I guess it's up to you if you want the strings to be regexes or regular strings. The pull request I made escapes the user strings so users can use arbitrary strings as lgtm strings
I used a regex for the check because I wanted case insensitivity. The LGTM is only counted if the entire string is the LGTM token… so the regex is kind of useless.