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

Change subject: [spelling] Fix spelling mistake with ValueError exception
......................................................................

[spelling] Fix spelling mistake with ValueError exception

Change-Id: Idb404a82e07fb2e08746a31935db84e2d86fab5b
---
M pywikibot/userinterfaces/buffer_interface.py
1 file changed, 4 insertions(+), 5 deletions(-)

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



diff --git a/pywikibot/userinterfaces/buffer_interface.py 
b/pywikibot/userinterfaces/buffer_interface.py
index 7a58c2a..ac9795d 100755
--- a/pywikibot/userinterfaces/buffer_interface.py
+++ b/pywikibot/userinterfaces/buffer_interface.py
@@ -1,6 +1,6 @@
 """Non-interactive interface that stores output."""
 #
-# (C) Pywikibot team, 2021
+# (C) Pywikibot team, 2021-2022
 #
 # Distributed under the terms of the MIT license.
 #
@@ -13,9 +13,6 @@
 from pywikibot.userinterfaces._interface_base import ABUIC


-BAD_BUFFER_TYPE = 'BUG: bufffer can only contain logs and strings, had {}'
-
-
 class UI(ABUIC):

     """Collects output into an unseen buffer."""
@@ -66,7 +63,9 @@
             elif isinstance(record, logging.LogRecord):
                 output.append(record.getMessage())
             else:
-                raise ValueError(BAD_BUFFER_TYPE.format(type(record).__name__))
+                raise ValueError(
+                    'BUG: buffer can only contain logs and strings, had {}'
+                    .format(type(record).__name__))

         return output


--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/766809
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: Idb404a82e07fb2e08746a31935db84e2d86fab5b
Gerrit-Change-Number: 766809
Gerrit-PatchSet: 1
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