From a2383063914f478ffb8848b99972b398960f3276 Mon Sep 17 00:00:00 2001 From: Krzysztof Szularz Date: Tue, 6 May 2014 17:58:23 +0200 Subject: [PATCH] Fix string formating There is a lot of spaces in this error message. By the way: this is never raised in normal condition. The `detect_backend` doesn't try to `get_code()` at all. --- embed_video/fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embed_video/fields.py b/embed_video/fields.py index 0333eff..b1aa157 100644 --- a/embed_video/fields.py +++ b/embed_video/fields.py @@ -47,6 +47,6 @@ class EmbedVideoFormField(forms.URLField): except UnknownBackendException: raise forms.ValidationError(_(u'URL could not be recognized.')) except UnknownIdException: - raise forms.ValidationError(_(u'ID of this video could not be \ - recognized.')) + raise forms.ValidationError(_(u'ID of this video could not be ' + u'recognized.')) return url