From ed9ad3ed9844fc4dbb6a23a3cdafd9a30b5fe587 Mon Sep 17 00:00:00 2001 From: Deoy12 <55270451+Deoy12@users.noreply.github.com> Date: Sun, 27 Oct 2019 04:59:28 -0700 Subject: [PATCH] minor change --- Textalk.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Textalk.py b/Textalk.py index 252dbf1..a62c88f 100644 --- a/Textalk.py +++ b/Textalk.py @@ -18,7 +18,11 @@ def parsestr(s): conv = convert(s) if len(s.split()) == 1: return conv, s - return conv, calculate(conv) + a, b = conv, calculate(conv) + if 'Incorrect' in b : + return conv, calculate(s) + else: + return a, b def convert(s): return convert_fractions(convert_to_proto(s))