Permalink
Browse files

LinkRelay: Display error on invalid regexp instead of failing loading.

  • Loading branch information...
1 parent 3fed73f commit 7e6f33e2842514ccff5300ad028beb69976b7f6a @ProgVal committed May 31, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 LinkRelay/plugin.py
View
@@ -97,13 +97,16 @@ def _loadFromConfig(self):
relay = relay.split(' | ')
if not len(relay) == 5:
continue
- self.relays.append(self.Relay(relay[0],
+ try:
+ self.relays.append(self.Relay(relay[0],
relay[1],
relay[2],
relay[3],
re.compile('^%s$' % relay[0], re.I),
re.compile('^%s$' % relay[1]),
re.compile(relay[4])))
+ except:
+ log.error('Failed adding relay: %r' % relay)
self.nickSubstitutions = {}
for substitute in self.registryValue('substitutes').split(' || '):

0 comments on commit 7e6f33e

Please sign in to comment.