def get_error_match(text):
 import re
 return re.match('  File "(.*)", line (\\d*)', text)

def get_error_match ( text ) : import re return re . match ( '  File "(.*)", line (\\d*)' , text )
return error match .