diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-03-05 21:09:05 +0000 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-03-05 22:18:56 +0100 |
| commit | 8e9e278750ee52a0d7e057c0666555b03880ced0 (patch) | |
| tree | 3ea2d67553fc71a750b68b2bed32eaa70a4d36cc /src/conf_mode/service_https.py | |
| parent | 838cf65b1c181b7b4f00ae712166065bad0fbf54 (diff) | |
| download | vyos-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/conf_mode/service_https.py')
0 files changed, 0 insertions, 0 deletions
