Fixed: forgotten format placeholder.

--
Sincerely,  
Alexander Kryklia
Отправлено при помощи Sparrow (http://www.sparrowmailapp.com/?sig)


вторник, 15 октября 2013 г. в 20:20, Ned Batchelder написал:

> In cms/djangoapps/contentstore/transcripts_utils.py:
> > + We expect, that speed of source subs equal to 1 > + > + :param speed_subs: dictionary {speed: sub_id, ...} > + :param subs_type: type of source subs: "srt", ... > + :param subs_filedata:unicode, content of source subs. > + :param item: module object. > + :returns: True, if all subs are generated and saved successfully. > + """ > + if subs_type != 'srt': > + raise TranscriptsGenerationException("We support only SubRip (*.srt) transcripts format.") > + try: > + srt_subs_obj = SubRipFile.from_string(subs_filedata) > + except Exception as e: > + raise TranscriptsGenerationException( > + "Something wrong with SubRip transcripts file during parsing." > + "Inner message is".format(e.message)  
> You don't have a format placeholder "{}" for the message string.
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/edx/edx-platform/pull/1111/files#r6977720).
>  
>  
>