Browse Source

More exception handling

master
Thomas Mannay GitHub 7 years ago
parent
commit
8cc04b7b9d
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      seddy.py

+ 4
- 1
seddy.py 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]:


Loading…
Cancel
Save