def attach_bundle(self, bundle):
if not isinstance(bundle, BlueprintBundle):<EOL><INDENT>raise IncompatibleBundle('<STR_LIT>'<EOL>.format(BlueprintBundle))<EOL><DEDENT>elif len(bundle.blueprints) == <NUM_LIT:0>:<EOL><INDENT>raise MissingBlueprints("<STR_LIT>")<EOL><DEDENT>elif self._bundle_exists(bundle.path):<EOL><INDENT>raise ConflictingPath("<STR_LIT>".format(bundle.path))<EOL><DEDENT>elif self._journey_path == bundle.path == '<STR_LIT:/>':<EOL><INDENT>raise ConflictingPath("<STR_LIT>".format(bundle.path))<EOL><DEDENT>self._attached_bundles.append(bundle)<EOL>
Attaches a bundle object

        :param bundle: :class:`flask_journey.BlueprintBundle` object
        :raises:
            - IncompatibleBundle if the bundle is not of type `BlueprintBundle`
            - ConflictingPath if a bundle already exists at bundle.path
            - MissingBlueprints if the bundle doesn't contain any blueprints