import logging def log_exception(e: Exception, msg: str = ''): logging.debug(msg, stack_info=True) raise e class GameException(Exception): pass class LineupsMissingException(GameException): pass class CardLegalityException(GameException): pass class GameNotFoundException(GameException): pass class TeamNotFoundException(GameException): pass class PlayNotFoundException(GameException): pass