mirror of
https://github.com/9001/copyparty.git
synced 2026-04-02 22:08:38 +10:00
fix panic when zero accounts
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user