Skip to content

Commit d4b91f7

Browse files
committed
Remove unnecessary returns
1 parent 074309f commit d4b91f7

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

nxc/modules/webdav.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,10 @@ def on_login(self, context, connection):
4343
return
4444
elif e.getErrorCode() in nt_errors.ERROR_MESSAGES:
4545
context.log.fail(f"Error enumerating WebDAV: {e.getErrorString()[0]}", color="magenta")
46-
return
4746
else:
4847
context.log.debug(f"WebDAV SessionError (code={hex(e.getErrorCode())})")
49-
return
5048
except (BrokenPipeError, ConnectionResetError, NetBIOSError, OSError) as e:
5149
context.log.debug(f"WebDAV check aborted due to transport error: {e.__class__.__name__}: {e}")
52-
return
5350
finally:
5451
with contextlib.suppress(Exception):
5552
remote_file.close()

0 commit comments

Comments
 (0)