diff --git a/impacket/smb3.py b/impacket/smb3.py index 6cff78c89..f562e6eeb 100644 --- a/impacket/smb3.py +++ b/impacket/smb3.py @@ -1819,9 +1819,6 @@ def listPath(self, shareName, path, password = None): if (e.get_error_code()) != STATUS_NO_MORE_FILES: raise break - except Exception as e: - print(str(e)) - raise finally: if fileId is not None: self.close(treeId, fileId)