Skip to content

Instantly share code, notes, and snippets.

View teocns's full-sized avatar
:octocat:

teocns teocns

:octocat:
  • behind a firewall
  • 14:28 (UTC +02:00)
  • X @teocns
View GitHub Profile
@teocns
teocns / cf_evt.md
Created December 8, 2024 15:16
ControlFlow Event System

ControlFlow Event System

This document outlines the event system in ControlFlow, showing the relationships between different event types and their roles in the system.

classDiagram
    class Event {
        +str event
        +str id
@alonho
alonho / flask_pdb.py
Created December 27, 2012 15:40
Flask: drop into pdb on exception
def drop_into_pdb(app, exception):
import sys
import pdb
import traceback
traceback.print_exc()
pdb.post_mortem(sys.exc_info()[2])
# somewhere in your code (probably if DEBUG is True)
flask.got_request_exception.connect(drop_into_pdb)