mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
AURA: Fix styling when formatting error strings
This commit is contained in:
parent
07cfaaa3b3
commit
fbc76887ad
1 changed files with 7 additions and 7 deletions
|
|
@ -394,7 +394,7 @@ class TrackDocument(AURADocument):
|
||||||
return self.error(
|
return self.error(
|
||||||
"404 Not Found",
|
"404 Not Found",
|
||||||
"No track with the requested id.",
|
"No track with the requested id.",
|
||||||
("There is no track with an id of {} in the library.").format(
|
"There is no track with an id of {} in the library.".format(
|
||||||
track_id
|
track_id
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
@ -492,7 +492,7 @@ class AlbumDocument(AURADocument):
|
||||||
return self.error(
|
return self.error(
|
||||||
"404 Not Found",
|
"404 Not Found",
|
||||||
"No album with the requested id.",
|
"No album with the requested id.",
|
||||||
("There is no album with an id of {} in the library.").format(
|
"There is no album with an id of {} in the library.".format(
|
||||||
album_id
|
album_id
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
@ -591,7 +591,7 @@ class ArtistDocument(AURADocument):
|
||||||
return self.error(
|
return self.error(
|
||||||
"404 Not Found",
|
"404 Not Found",
|
||||||
"No artist with the requested id.",
|
"No artist with the requested id.",
|
||||||
("There is no artist with an id of {} in the library.").format(
|
"There is no artist with an id of {} in the library.".format(
|
||||||
artist_id
|
artist_id
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
@ -696,7 +696,7 @@ class ImageDocument(AURADocument):
|
||||||
return self.error(
|
return self.error(
|
||||||
"404 Not Found",
|
"404 Not Found",
|
||||||
"No image with the requested id.",
|
"No image with the requested id.",
|
||||||
("There is no image with an id of {} in the library.").format(
|
"There is no image with an id of {} in the library.".format(
|
||||||
image_id
|
image_id
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
@ -746,7 +746,7 @@ def audio_file(track_id):
|
||||||
return AURADocument.error(
|
return AURADocument.error(
|
||||||
"404 Not Found",
|
"404 Not Found",
|
||||||
"No track with the requested id.",
|
"No track with the requested id.",
|
||||||
("There is no track with an id of {} in the library.").format(
|
"There is no track with an id of {} in the library.".format(
|
||||||
track_id
|
track_id
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
@ -768,7 +768,7 @@ def audio_file(track_id):
|
||||||
"Requested audio file has an unknown mimetype.",
|
"Requested audio file has an unknown mimetype.",
|
||||||
(
|
(
|
||||||
"The audio file for track {} has an unknown mimetype. "
|
"The audio file for track {} has an unknown mimetype. "
|
||||||
"It's file extension is {}."
|
"Its file extension is {}."
|
||||||
).format(track_id, path.split(".")[-1]),
|
).format(track_id, path.split(".")[-1]),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -872,7 +872,7 @@ def image_file(image_id):
|
||||||
return AURADocument.error(
|
return AURADocument.error(
|
||||||
"404 Not Found",
|
"404 Not Found",
|
||||||
"No image with the requested id.",
|
"No image with the requested id.",
|
||||||
("There is no image with an id of {} in the library").format(
|
"There is no image with an id of {} in the library".format(
|
||||||
image_id
|
image_id
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue