how to raise an error in python from another file code example Example: exception pyton print except Exception as e: print(e)