diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2016-02-21 11:30:36 +0100 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2016-02-21 11:30:36 +0100 |
| commit | 6eef105e2592542746c56c02c64c5afa7050ee71 (patch) | |
| tree | c635fe3429c7485a55febf2b3fe714f322606b26 /examples/spectrogram.py | |
| parent | 6e86b42f6f4974083f643fa9160a12579e34f46c (diff) | |
DOC: Use the same exception handling strategy in all examples
Diffstat (limited to 'examples/spectrogram.py')
| -rwxr-xr-x | examples/spectrogram.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |
