[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [nyx/master] Be more selective with os.putenv exception suppresison
commit 68f6f573fdac44fd9423e965d05ad253f0c64355
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits