[scribus] Error in script from Wiki

Viktor Trojanovic viktor at troja.ch
Sat May 19 19:33:48 UTC 2018


On 19 May 2018 at 21:02, Gregory Pittman <gpittman at iglou.com> wrote:

> On 05/19/2018 02:36 PM, Juraj Fedel wrote:
> […]
> >
> > All that said there is one error in script:
> >
> > <<<<<<<<
> > if scribus.haveDoc():
> >
> > else:
> >     scribus.messageBox('Usage Error', 'You need a Document open',
> scribus.ICON_WARNING, scribus.BUTTON_OK)
> >     sys.exit(2)
> > ========
> > if scribus.haveDoc():
> >     pass
> > else:
> >     scribus.messageBox('Usage Error', 'You need a Document open',
> scribus.ICON_WARNING, scribus.BUTTON_OK)
> >     sys.exit(2)
> >>>>>>>>>
> >
> > There is missing one line with single command in it:
> >     pass
> >
> > add that line and script will run fine.
> >
>
> Thanks Juraj,
>
> I fixed the wiki article.
>
> Greg
>
>
>
Thanks for the fix, the script runs without issues now.

Viktor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180519/17a55997/attachment.html>


More information about the scribus mailing list