1.新增销售和计划权限组2.优化代码格式

This commit is contained in:
jinling.yang
2023-11-21 16:10:05 +08:00
parent 31f07c5156
commit 6ec6094c5e
21 changed files with 85 additions and 111 deletions

View File

@@ -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
# 下载指定目录下的指定文件