[entropy.transceivers] ftp_plugin: update "raise" syntax

This commit is contained in:
Fabio Erculiani
2011-09-06 22:49:01 +02:00
parent 172850e75a
commit e2d5665843

View File

@@ -498,7 +498,7 @@ class EntropyFtpUriHandler(EntropyUriHandler):
"""
resp = self.__ftpconn.sendcmd('CPFR ' + fromname)
if resp[0] != '3':
raise self.ftplib.error_reply, resp
raise self.ftplib.error_reply(resp)
return self.__ftpconn.voidcmd('CPTO ' + toname)
def copy(self, remote_path_old, remote_path_new):