1
0
mirror of https://github.com/sys-fs/seddy synced 2024-11-26 04:57:18 -05:00

More exception handling

This commit is contained in:
Thomas Mannay 2016-12-15 23:32:12 +00:00 committed by GitHub
parent 6b89457021
commit 8cc04b7b9d

View File

@ -63,7 +63,10 @@ def seddy(sed, history):
return False return False
if 'i' in regex[3]: if 'i' in regex[3]:
flag |= re.I flag |= re.I
msg = history.find(regex[1], flag) try:
msg = history.find(regex[1], f)
except:
msg = False
if msg == False: if msg == False:
return False return False
if "g" in regex[3]: if "g" in regex[3]: