def initialize_communities_bucket():
bucket_id = UUID(current_app.config['<STR_LIT>'])<EOL>if Bucket.query.get(bucket_id):<EOL><INDENT>raise FilesException("<STR_LIT>".format(<EOL>bucket_id))<EOL><DEDENT>else:<EOL><INDENT>storage_class = current_app.config['<STR_LIT>']<EOL>location = Location.get_default()<EOL>bucket = Bucket(id=bucket_id,<EOL>location=location,<EOL>default_storage_class=storage_class)<EOL>db.session.add(bucket)<EOL>db.session.commit()<EOL><DEDENT>
Initialize the communities file bucket.

    :raises: `invenio_files_rest.errors.FilesException`