Commit df159261 authored by 广宏伟's avatar 广宏伟

Merged in dev (pull request #109)

[Update] exception
parents 22d0e4b6 b1beecd8
......@@ -3,7 +3,6 @@ import paramiko
import time
from datetime import datetime
from functools import wraps
import traceback
from paramiko.sftp import SFTP_PERMISSION_DENIED, SFTP_NO_SUCH_FILE, \
SFTP_FAILURE, SFTP_EOF, SFTP_CONNECTION_LOST
......@@ -35,9 +34,9 @@ def convert_error(func):
except EOFError as e:
error = e
response = SFTP_EOF
# except Exception as e:
# error = e
# response = SFTP_FAILURE
except Exception as e:
error = e
response = SFTP_FAILURE
finally:
if isinstance(error, Exception):
logger.error(error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment