From 6eef105e2592542746c56c02c64c5afa7050ee71 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sun, 21 Feb 2016 11:30:36 +0100 Subject: DOC: Use the same exception handling strategy in all examples --- examples/spectrogram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/spectrogram.py') diff --git a/examples/spectrogram.py b/examples/spectrogram.py index 54506b6..e112414 100755 --- a/examples/spectrogram.py +++ b/examples/spectrogram.py @@ -94,4 +94,4 @@ try: except KeyboardInterrupt: parser.exit('Interrupted by user') except Exception as e: - parser.exit(str(e)) + parser.exit(type(e).__name__ + ': ' + str(e)) -- cgit v1.2.3