Merge pull request #29 from professor-hillman/fix-webdav-module

fix webdav module exception handler
main
Marshall Hallenbeck 2023-09-18 18:48:42 -04:00 committed by GitHub
commit 40a0ef9b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ class NXCModule:
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