From 7b1d045d302b74ed83b7d778c4c693d4264a68fc Mon Sep 17 00:00:00 2001 From: barrierye Date: Fri, 27 Mar 2020 17:31:13 +0800 Subject: [PATCH] update code --- python/paddle_serving_server/monitor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle_serving_server/monitor.py b/python/paddle_serving_server/monitor.py index e34cf247..74de76b3 100644 --- a/python/paddle_serving_server/monitor.py +++ b/python/paddle_serving_server/monitor.py @@ -126,6 +126,7 @@ class FTPMonitor(Monitor): self._ftp.login(username, password) def _exist_remote_donefile(self): + import ftplib try: donefile_path = '{}/{}'.format(self._remote_path, self._remote_donefile_name) -- GitLab