From 8cc04b7b9d5b78750a0a1c88fb85667091a285c3 Mon Sep 17 00:00:00 2001 From: Thomas Mannay Date: Thu, 15 Dec 2016 23:32:12 +0000 Subject: [PATCH] More exception handling --- seddy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/seddy.py b/seddy.py index a4ad32b..bf614e3 100644 --- a/seddy.py +++ b/seddy.py @@ -63,7 +63,10 @@ def seddy(sed, history): return False if 'i' in regex[3]: flag |= re.I - msg = history.find(regex[1], flag) + try: + msg = history.find(regex[1], f) + except: + msg = False if msg == False: return False if "g" in regex[3]: