浏览代码

More exception handling

master
Thomas Mannay GitHub 7 年前
父节点
当前提交
8cc04b7b9d
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      seddy.py

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


正在加载...
取消
保存