[tor-commits] [nyx/master] Be more selective with os.putenv exception suppresison

atagar at torproject.org atagar at torproject.org
Mon Oct 30 23:35:05 UTC 2017


commit 68f6f573fdac44fd9423e965d05ad253f0c64355
Author: Damian Johnson <atagar at 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:



More information about the tor-commits mailing list