1.新增销售和计划权限组2.优化代码格式
This commit is contained in:
@@ -18,7 +18,7 @@ class FtpController():
|
||||
self.ftp.connect(host, port)
|
||||
self.ftp.login(username, password)
|
||||
logging.info("ftp连接成功")
|
||||
except:
|
||||
except Exception:
|
||||
logging.info("ftp连接失败")
|
||||
|
||||
# 下载目录下的文件
|
||||
@@ -35,7 +35,7 @@ class FtpController():
|
||||
server = os.path.join(serverdir, file)
|
||||
if file.find(".") != -1:
|
||||
self.download_file(server, file)
|
||||
except:
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
# 下载指定目录下的指定文件
|
||||
|
||||
Reference in New Issue
Block a user