I\'m using python to evaluate some measured data. Because of many possible results it is difficult to handle or possible combinations. Sometimes an error happens during the
The simplest way is just to use:
import traceback try: except IndexError: traceback.print_exc()
or if using logging:
import logging try: except IndexError as e: logging.exception(e)