[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [torflow/master 02/92] snakeinspector exception formatting
Author: John M. Schanck <john@xxxxxxxxxxx>
Date: Tue, 8 Jun 2010 01:28:29 -0400
Subject: snakeinspector exception formatting
Commit: 7a9cbbfa1ff7780be9e189ac4bb7899e3b68028a
---
NetworkScanners/ExitAuthority/snakeinspector.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/NetworkScanners/ExitAuthority/snakeinspector.py b/NetworkScanners/ExitAuthority/snakeinspector.py
index e31d7f4..99bd25d 100755
--- a/NetworkScanners/ExitAuthority/snakeinspector.py
+++ b/NetworkScanners/ExitAuthority/snakeinspector.py
@@ -174,11 +174,11 @@ def main(argv):
print r
except KeyboardInterrupt:
raise KeyboardInterrupt
- except IOError, e:
+ except (Exception, IOError), e:
traceback.print_exc()
- except Exception, e:
- traceback.print_exc()
- print "\n-----------------------------\n"
+ sys.stderr.write("\n-----------------------------\n")
+ else:
+ print "\n-----------------------------\n"
if send_email:
for p in by_proto.iterkeys():
--
1.7.1