jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/640670 )
Change subject: [bugfix] fix TypeError in clean_sandbox.py ......................................................................
[bugfix] fix TypeError in clean_sandbox.py
Bug: T267717 Change-Id: Ib787110f0f3cc2e0b5fb34942cd1dc56f3dbc42f --- M scripts/clean_sandbox.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Meno25: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/clean_sandbox.py b/scripts/clean_sandbox.py index 14cb913..4e9266f 100755 --- a/scripts/clean_sandbox.py +++ b/scripts/clean_sandbox.py @@ -166,10 +166,10 @@ super().__init__(**kwargs) if self.opt.delay < 0: d = min(15, max(5, int(self.opt.hours * 60))) - self.available_options['delay_td'] = datetime.timedelta(minutes=d) + self.opt.delay_td = datetime.timedelta(minutes=d) else: d = max(5, self.opt.delay) - self.available_options['delay_td'] = datetime.timedelta(minutes=d) + self.opt.delay_td = datetime.timedelta(minutes=d)
self.site = pywikibot.Site() self.translated_content = self.opt.text or i18n.translate(
pywikibot-commits@lists.wikimedia.org