WolfgangFahl / py-3rdparty-mediawiki

Wrapper for pywikibot and mwclient MediaWiki API librarties with improvements for 3rd party wikis
Apache License 2.0
4 stars 5 forks source link

regression: wikibackup fails with TypeError #50

Closed WolfgangFahl closed 3 years ago

WolfgangFahl commented 3 years ago

wikibackup -s wiki -q "[[modification date::>2021]]" Start: 2021-01-02 09:15:18, End: 2021-02-09 03:47:47 wikibackup: TypeError("unsupported operand type(s) for /: 'datetime.timedelta' and 'NoneType'") for help use --help

tholzheim commented 3 years ago

Does this error still occurs after the fix of #49. I tried this before the fix and it exactly faild at "if args.queryDivision < 1:" and was fixed with #49 see https://github.com/WolfgangFahl/py-3rdparty-mediawiki/commit/7ec8c54 . After the fix I was not able to recreate this bug.

WolfgangFahl commented 3 years ago

You might be right

wikibackup -V
wikibackup v0.1.15 (2020-12-05)

but that's due to #52

wikibackup -V
wikibackup v0.3.3 (2020-02-12)
wikibackup -s wiki -q "[[modification date::>2021]]"
Start: 2021-01-02 09:15:18, End: 2021-02-12 03:47:46
wikibackup: TypeError("unsupported operand type(s) for /: 'datetime.timedelta' and 'NoneType'")
            for help use --help

So it seems to be still an issue

tholzheim commented 3 years ago

You are right. I added a default value to the command line argument -qd. This should fix this issue.