fix comments without space after hash

main
Marshall Hallenbeck 2023-10-26 19:58:36 -04:00
parent dcdff05b59
commit 9387891dc1
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class ftp(connection):
# Check if the file exists
self.conn.size(filename)
# Attempt to download the file
self.conn.retrbinary(f"RETR {filename}", open(downloaded_file, "wb").write) #noqa: SIM115
self.conn.retrbinary(f"RETR {filename}", open(downloaded_file, "wb").write) # noqa: SIM115
except error_perm as error_message:
self.logger.fail(f"Failed to download the file. Response: ({error_message})")
self.conn.close()
@ -155,7 +155,7 @@ class ftp(connection):
def put_file(self, local_file, remote_file):
try:
# Attempt to upload the file
self.conn.storbinary(f"STOR {remote_file}", open(local_file, "rb")) #noqa: SIM115
self.conn.storbinary(f"STOR {remote_file}", open(local_file, "rb")) # noqa: SIM115
except error_perm as error_message:
self.logger.fail(f"Failed to upload file. Response: ({error_message})")
return False