← Back to team overview

openlp-core team mailing list archive

Re: [Merge] lp:~phill-ridout/openlp/TODOne into lp:openlp

 

Review: Needs Fixing

Just one minor edit.

Diff comments:

> 
> === modified file 'openlp/plugins/presentations/lib/powerpointcontroller.py'
> --- openlp/plugins/presentations/lib/powerpointcontroller.py	2017-05-14 10:11:10 +0000
> +++ openlp/plugins/presentations/lib/powerpointcontroller.py	2017-05-30 20:33:49 +0000
> @@ -542,5 +542,5 @@
>                      text += shape.TextFrame.TextRange.Text + '\n'
>      except pywintypes.com_error as e:
>          log.warning('Failed to extract text from powerpoint slide')
> -        log.warning(e)
> +        log.exception(e)

Actually, just remove the log.warning(e), and change the top log.warning to a log.exception('...'). log.exception already logs the exception, you don't have to pass it in.

>      return text


-- 
https://code.launchpad.net/~phill-ridout/openlp/TODOne/+merge/324815
Your team OpenLP Core is subscribed to branch lp:openlp.


References