@@ -228,7 +228,7 @@ def __init__(self, file_path: str, media_type: str, **kwargs):
228228 attributes. This may be used to stop temporary directories
229229 from being garbage collected while the `.Blob` exists.
230230
231- :raises IOError: if the file specified does not exist.
231+ :raise IOError: if the file specified does not exist.
232232 """
233233 if not os .path .exists (file_path ):
234234 raise IOError ("Tried to return a file that doesn't exist." )
@@ -348,10 +348,10 @@ def retrieve_data(self) -> Self:
348348
349349 :return: the `.Blob` object (i.e. ``self``), after retrieving the data.
350350
351- :raises ValueError: if the ``href`` is set as ``"blob://local"`` but
351+ :raise ValueError: if the ``href`` is set as ``"blob://local"`` but
352352 the ``_data`` attribute has not been set. This happens when the
353353 `.Blob` is being constructed using `.Blob.from_bytes` or similar.
354- :raises LookupError: if the `.Blob` is being constructed from a URL
354+ :raise LookupError: if the `.Blob` is being constructed from a URL
355355 and the URL does not correspond to a `.BlobData` instance that
356356 exists on this server (i.e. one that has been previously created
357357 and added to the `.BlobManager` as the result of a previous action).
@@ -389,7 +389,7 @@ def to_dict(self) -> Mapping[str, str]:
389389 :return: a JSON-serialisable dictionary with a URL that allows
390390 the `.Blob` to be downloaded from the `.BlobManager`.
391391
392- :raises LookupError: if the context variable providing access to the
392+ :raise LookupError: if the context variable providing access to the
393393 `.BlobManager` is not available. This usually means the `.Blob` is
394394 being serialised somewhere other than the output of an action.
395395 """
@@ -442,7 +442,7 @@ def data(self) -> ServerSideBlobData:
442442
443443 :return: the data store wrapping data on disk or in memory.
444444
445- :raises ValueError: if there is no data stored on disk or in memory.
445+ :raise ValueError: if there is no data stored on disk or in memory.
446446 """
447447 if self ._data is None :
448448 raise ValueError ("This Blob has no data." )
@@ -583,7 +583,7 @@ class MyImageBlob(Blob):
583583
584584 :return: a subclass of `.Blob` with the specified default media type.
585585
586- :raises ValueError: if the media type contains ``'`` or ``\``.
586+ :raise ValueError: if the media type contains ``'`` or ``\``.
587587 """
588588 if "'" in media_type or "\\ " in media_type :
589589 raise ValueError ("media_type must not contain single quotes or backslashes" )
@@ -631,7 +631,7 @@ def add_blob(self, blob: ServerSideBlobData) -> uuid.UUID:
631631 :return: a unique ID identifying the data. This forms part of
632632 the URL to download the data.
633633
634- :raises ValueError: if the `.ServerSideBlobData` object already
634+ :raise ValueError: if the `.ServerSideBlobData` object already
635635 has an ``id`` attribute but is not in the dictionary of
636636 data. This suggests the object has been added to another
637637 `.BlobDataManager`, which should never happen.
0 commit comments