
31 Oct
2017
31 Oct
'17
12:35 a.m.
commit 68f6f573fdac44fd9423e965d05ad253f0c64355 Author: Damian Johnson <atagar@torproject.org> Date: Mon Oct 30 16:34:36 2017 -0700 Be more selective with os.putenv exception suppresison --- nyx/starter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nyx/starter.py b/nyx/starter.py index 6f90bfd..2532a4a 100644 --- a/nyx/starter.py +++ b/nyx/starter.py @@ -89,12 +89,12 @@ def main(config): try: os.putenv('LANG', 'C') # make subcommands (ps, netstat, etc) provide english results - except: + except OSError: pass try: os.putenv('ESCDELAY', '0') # make 'esc' take effect right away - except: + except OSError: pass try: