Raise exception on importing custom code