diff --git a/TODO.mkdn b/TODO.mkdn index 60d0fd9..84edb88 100644 --- a/TODO.mkdn +++ b/TODO.mkdn @@ -21,7 +21,6 @@ Bugs * When using mood sort, scroll position jumps to last selected chum * When left for a really long time, animations slow down pesterchum * Openning userlist resets appearance of OP/voice for anyone that become OP/voice after you joined a memo -* No sign of error if regexp quirk is malformed (not enough captured groups, etc) * Windows: Dragging a chum on top of another chum and releasing makes one disappear Mac Bugs diff --git a/convo.py b/convo.py index 4e5c6b2..375528d 100644 --- a/convo.py +++ b/convo.py @@ -658,7 +658,14 @@ class PesterConvo(QtGui.QFrame): quirks = self.mainwindow.userprofile.quirks lexmsg = lexMessage(text) if type(lexmsg[0]) is not mecmd and self.applyquirks: - lexmsg = quirks.apply(lexmsg) + try: + lexmsg = quirks.apply(lexmsg) + except: + msgbox = QtGui.QMessageBox() + msgbox.setText("Whoa there! There seems to be a problem.") + msgbox.setInformativeText("A quirk seems to be having a problem. (Possibly you're trying to capture a non-existant group?)") + msgbox.exec_() + return lexmsgs = splitMessage(lexmsg) for lm in lexmsgs: