mirror of
https://github.com/sys-fs/seddy
synced 2024-11-22 11:54:16 -05:00
More exception handling
This commit is contained in:
parent
6b89457021
commit
8cc04b7b9d
5
seddy.py
5
seddy.py
@ -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]:
|
||||||
|
Loading…
Reference in New Issue
Block a user