fix panic when zero accounts

This commit is contained in:
ed
2021-06-28 15:20:40 +02:00
parent 062df3f0c3
commit 0d46d548b9
2 changed files with 4 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ class HttpCli(object):
def log(self, msg, c=0):
ptn = self.asrv.re_pwd
if ptn.search(msg):
if ptn and ptn.search(msg):
msg = ptn.sub(self.unpwd, msg)
self.log_func(self.log_src, msg, c)