jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/806981 )

Change subject: [fix] Fix error message of memento.get_closest_memento_url
......................................................................

[fix] Fix error message of memento.get_closest_memento_url

Change-Id: I07927e0426636f1b6d3f186add56f4fb8c2e205d
---
M pywikibot/data/memento.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/data/memento.py b/pywikibot/data/memento.py
index 59960aa..b8cfc9b 100644
--- a/pywikibot/data/memento.py
+++ b/pywikibot/data/memento.py
@@ -334,4 +334,4 @@
         err_msg = 'closest memento uri not found for {} via {}'
     else:
         return mementos['closest']['uri'][0]
-    raise Exception(err_msg)
+    raise Exception(err_msg.format(url, timegate_uri))

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/806981
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I07927e0426636f1b6d3f186add56f4fb8c2e205d
Gerrit-Change-Number: 806981
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to