OK, we probably should add an option to generate_family_file.py for
ignoring SSL errors. But for now try using this pregenerated file:
https://phabricator.wikimedia.org/F10802604
(it should be placed at pywikibot/families directory)


On Wed, Nov 15, 2017 at 10:52 AM, Paul Schmehl <[email protected]> wrote:

> I screwed up. I meant to type family file and typed user-config.py instead.
>
> I changed the ignore_certificate_error return value to true in
> pywikibot/family.py, but it still chokes on ssl verify. That surprised me.
> It's like the code is being ignored.
>
>
> --On November 15, 2017 at 10:19:26 AM +0330 Dalba <[email protected]>
> wrote:
>
>
>>
>> I even added this to user-config.py, but still got the same result.
>>
>> def ignore_certificate_error(self, code):
>>    return True
>>
>>
>>
>>
>> I think ignore_certificate_error should be defined inside the family file
>> and has no effect in user-config.py.
>> As a workaround you can modify the ignore_certificate_error in
>> pywikibot/family.py to make it return True. Then generate your family
>> file using the generator script (hopefully there won't be any error now).
>> After that you can revert the change in family.py and define
>> ignore_certificate_error in the newly generated file.
>>
>>
>
>
> "The man who never looks into a newspaper is better informed than he who
> reads them, inasmuch as he who knows nothing is nearer the truth than he
> whose mind is filled with falsehoods and errors."  -  Thomas Jefferson
>
> Paul Schmehl ([email protected])
> Independent Researcher
>
> _______________________________________________
> pywikibot mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/pywikibot
>
_______________________________________________
pywikibot mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot

Reply via email to