Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\i201720\AppData\Local\Programs\Python\Python36\lib\tkinter_init_.py", line 1699, in call
return self.func(*args)
File "H:\Atom\AI\AIForm.py", line 65, in talk
response = AI.dialogue(value)
File "H:\Atom\AI\AI.py", line 37, in dialogue
self.emotion.update(input)
File "H:\Atom\AI\AI.py", line 99, in update
if ptn_item.match(input):
File "H:\Atom\AI\dictionary.py", line 199, in match
return re.search(self.pattern, str)
File "C:\Users\i201720\AppData\Local\Programs\Python\Python36\lib\re.py", line 182, in search
return _compile(pattern, flags).search(string)
File "C:\Users\i201720\AppData\Local\Programs\Python\Python36\lib\re.py", line 301, in _compile
p = sre_compile.compile(pattern, flags)
File "C:\Users\i201720\AppData\Local\Programs\Python\Python36\lib\sre_compile.py", line 562, in compile
p = sre_parse.parse(p, flags)
File "C:\Users\i201720\AppData\Local\Programs\Python\Python36\lib\sre_parse.py", line 856, in parse
p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, False)
File "C:\Users\i201720\AppData\Local\Programs\Python\Python36\lib\sre_parse.py", line 415, in _parse_sub
itemsappend(_parse(source, state, verbose))
File "C:\Users\i201720\AppData\Local\Programs\Python\Python36\lib\sre_parse.py", line 615, in _parse
source.tell() - here + len(this))
sre_constants.error: nothing to repeat at position 0