Fix except statement in import