kashifpk / DNS-NG

DNS server with support for dynamic redirection, easy management and usage of a backend database for record keeping
http://www.compulife.com.pk/oss/dns_ng
2 stars 4 forks source link

Traceback #2

Open jaykumar2001 opened 13 years ago

jaykumar2001 commented 13 years ago

jxy@jkxxx:~/kashifpk-DNS-NG-c326f83$ python DNS_NG.py Traceback (most recent call last): File "DNS_NG.py", line 122, in factory = MyDNSServerFactory(clients=[resolver]) File "DNS_NG.py", line 24, in init self.RM = RedirectManager() File "/home/jay/kashifpk-DNS-NG-c326f83/redirect_manager.py", line 17, in init self.load_redirects() File "/home/jxy/kashifpk-DNS-NG-c326f83/redirect_manager.py", line 35, in load_redirects 'domain_re': re.compile(R.query_domain) File "/usr/lib/python2.7/re.py", line 190, in compile return _compile(pattern, flags) File "/usr/lib/python2.7/re.py", line 244, in _compile raise error, v # invalid expression sre_constants.error: nothing to repeat

kashifpk commented 13 years ago

This error is displayed because of invalid regular expression in the redirects table in the DB. Probably should display a more friendly message instead of an error trace.