From d93c75114d4f53960ece63cef583de2ae7778990 Mon Sep 17 00:00:00 2001 From: Jason Hillman Date: Mon, 18 Sep 2023 15:09:32 -0700 Subject: [PATCH] fix webdav module exception handler --- nxc/modules/webdav.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nxc/modules/webdav.py b/nxc/modules/webdav.py index b614b0997..b2b3b44ea 100644 --- a/nxc/modules/webdav.py +++ b/nxc/modules/webdav.py @@ -46,6 +46,7 @@ def on_login(self, context, connection): except SessionError as e: if e.getErrorCode() == nt_errors.STATUS_OBJECT_NAME_NOT_FOUND: pass - + elif e.getErrorCode() in nt_errors.ERROR_MESSAGES: + context.log.fail(f"Error enumerating WebDAV: {e.getErrorString()[0]}", color="magenta") else: raise e