Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw proper exception on re fail #5

Open
helpdeskdan opened this issue Jun 19, 2014 · 1 comment
Open

Throw proper exception on re fail #5

helpdeskdan opened this issue Jun 19, 2014 · 1 comment

Comments

@helpdeskdan
Copy link

helpdeskdan commented Jun 19, 2014

re.match - throw exception instead of crash!

./do_auth.py -i 1.1.1.1 -fix_crs_bug -u rancid -d 2.2.2.2 -l log.txt -f do_auth.ini -D
Traceback (most recent call last):
 File "./do_auth.py", line 571, in <module>
   main()
 File "./do_auth.py", line 430, in main
   if not match_it(this_group, "host_allow", ip_addr, config, log_file, filename):
 File "./do_auth.py", line 292, in match_it
   if re.match(item,match_item):
 File "/usr/lib/python2.7/re.py", line 137, in match
   return _compile(pattern, flags).match(string)
 File "/usr/lib/python2.7/re.py", line 242, in _compile
   raise error, v # invalid expression
sre_constants.error: nothing to repeat
@jathanism
Copy link
Owner

I know it's quite a bit late. Did we already fix this one?

If not, let me know what's inside of the do_auth.ini that could be used to repeat this.

Also, which Python version? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants