JAnD created this task.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  I want to subst template using `template.py` but in lang and family, which I 
have not as default
  
  So I use `template.py -parameter name_of_template -pagegenerator`
  
  I tried various order of these parameters and always with same error
  
    I:\pwb>pwb.py template -subst vitaj -lang:sk -family:wikisource 
-summary:"priamý výpis šablóny"
    ERROR: Fatal error:
    Traceback (most recent call last):
      File ".\scripts\template.py", line 369, in <module>
        main()
      File ".\scripts\template.py", line 364, in main
        bot = TemplateRobot(preloadingGen, templates, **options)
      File ".\scripts\template.py", line 225, in __init__
        builder = textlib._MultiTemplateMatchBuilder(site)
    UnboundLocalError: local variable 'site' referenced before assignment

TASK DETAIL
  https://phabricator.wikimedia.org/T131226

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JAnD
Cc: Aklapper, JAnD, pywikibot-bugs-list, jayvdb



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to