Skip to content

Commit

Permalink
Merge pull request #29 from professor-hillman/fix-webdav-module
Browse files Browse the repository at this point in the history
fix webdav module exception handler
  • Loading branch information
Marshall-Hallenbeck authored Sep 18, 2023
2 parents 977e186 + d93c751 commit 40a0ef9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nxc/modules/webdav.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 40a0ef9

Please sign in to comment.