Is there any reason of wrapping this exception? Also recommend moving this code to "exc.py"