Skip to content

Instantly share code, notes, and snippets.

View vaidsu's full-sized avatar

Vaithiyanathan Sundaram vaidsu

View GitHub Profile
@vaidsu
vaidsu / extract_exceptions.py
Created February 8, 2017 10:17 — forked from originell/extract_exceptions.py
Python Traceback Extractor from text/log files.
"""
Extract unique Python-Exceptions with their Traceback from a log/text file.
Usage::
python extract_exceptions.py -f logfile.txt
Furthermore it supports excluding exceptions you don't want to have::
python extract_exceptions.py -f logfile.txt -e ValueError,AttributeError