minutes and months qualifiers where introduced for archivebot.str2localized_duration but is missing for str2time function. This causes a MalformConfigError:
>>> import pwb, pywikibot as py >>> from scripts.archivebot import str2time as s2t >>> s2t('300') datetime.timedelta(0, 300) >>> s2t('5m') Traceback (most recent call last): File "<pyshell#62>", line 1, in <module> s2t('5m') File "scripts\archivebot.py", line 201, in str2time raise MalformedConfigError('Unrecognized parameter in template: %s' % string) MalformedConfigError: Unrecognized parameter in template: 5m