From fbc76887ad11d67c7a0262f8626c094eca62ff4b Mon Sep 17 00:00:00 2001 From: Callum Brown Date: Sat, 6 Mar 2021 13:22:28 +0000 Subject: [PATCH] AURA: Fix styling when formatting error strings --- beetsplug/aura.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/beetsplug/aura.py b/beetsplug/aura.py index 5a949dcf6..8980885fd 100644 --- a/beetsplug/aura.py +++ b/beetsplug/aura.py @@ -394,7 +394,7 @@ class TrackDocument(AURADocument): return self.error( "404 Not Found", "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 ), ) @@ -492,7 +492,7 @@ class AlbumDocument(AURADocument): return self.error( "404 Not Found", "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 ), ) @@ -591,7 +591,7 @@ class ArtistDocument(AURADocument): return self.error( "404 Not Found", "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 ), ) @@ -696,7 +696,7 @@ class ImageDocument(AURADocument): return self.error( "404 Not Found", "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 ), ) @@ -746,7 +746,7 @@ def audio_file(track_id): return AURADocument.error( "404 Not Found", "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 ), ) @@ -768,7 +768,7 @@ def audio_file(track_id): "Requested audio file 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]), ) @@ -872,7 +872,7 @@ def image_file(image_id): return AURADocument.error( "404 Not Found", "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 ), )