diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index 41e763e..0f55c6a 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -531,7 +531,7 @@ class SFTPClient (BaseSFTP): @since: 1.4 """ - return u(self._cwd) + return self._cwd and u(self._cwd) def putfo(self, fl, remotepath, file_size=0, callback=None, confirm=True): """