.blank? will raise undefined method NilClass in case domain is nil.
@username || raise Targetprocess::ConfigurationError.new("username required")