summaryrefslogtreecommitdiff
path: root/src/migration-scripts/https/2-to-3
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-03-05 21:09:05 +0000
committerChristian Breunig <christian@breunig.cc>2026-03-05 22:18:56 +0100
commit8e9e278750ee52a0d7e057c0666555b03880ced0 (patch)
tree3ea2d67553fc71a750b68b2bed32eaa70a4d36cc /src/migration-scripts/https/2-to-3
parent838cf65b1c181b7b4f00ae712166065bad0fbf54 (diff)
downloadvyos-1x-8e9e278750ee52a0d7e057c0666555b03880ced0.tar.gz
vyos-1x-8e9e278750ee52a0d7e057c0666555b03880ced0.zip
vyos.debug: T8347: fix UnboundLocalError in try/finally statement
Pylint warns about mask being used before assignment because mask is created inside the try block. While os.umask() itself is highly unlikely to fail, Python can raise asynchronous exceptions like KeyboardInterrupt or MemoryError at any given moment. If one of those exceptions occurs precisely after the try: statement but before "mask = os.umask(0o111)" completes, Python calls finally with "os.umask(mask)" causing UnboundLocalError.
Diffstat (limited to 'src/migration-scripts/https/2-to-3')
0 files changed, 0 insertions, 0 deletions