Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 749 Bytes

README.textile

File metadata and controls

31 lines (22 loc) · 749 Bytes

How are you gentlemen !!

This module provides an easy way to debug broken code.

What you say !!

from great_justice import what_happen
try:
    # ...
except:
    what_happen()

Or make it even better:

from great_justice import take_your_time
with take_your_time():
    # ...

Results:

great-justice 2012.6

To get a nice debug log just pass a logger object:

from great_justice import what_happen
import logging
logger = logging.getLogger(__name__)
try:
    # ...
except:
    what_happen(logger=logger)