jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1043156?usp=email )

Change subject: retry internal_api_error_DBUnexpectedError
......................................................................

retry internal_api_error_DBUnexpectedError

Bug: T367383
Change-Id: I21e065a1ecada189dc7e6122029edf26a84d0ddf
---
M make_dist.py
M pywikibot/data/api/_requests.py
2 files changed, 2 insertions(+), 0 deletions(-)

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




diff --git a/make_dist.py b/make_dist.py
index 8979c73..cc498e2 100755
--- a/make_dist.py
+++ b/make_dist.py
@@ -205,6 +205,7 @@
     """
     if '-help' in sys.argv:
         import re
+
         import setup
         help_text = re.sub(r'^\.\. version(added|changed)::.+', '',
                            __doc__, flags=re.MULTILINE | re.DOTALL)
diff --git a/pywikibot/data/api/_requests.py b/pywikibot/data/api/_requests.py
index b6afb6b..8ce916d 100644
--- a/pywikibot/data/api/_requests.py
+++ b/pywikibot/data/api/_requests.py
@@ -901,6 +901,7 @@
         retry = class_name in ['DBConnectionError',  # T64974
                                'DBQueryError',  # T60158
                                'DBQueryTimeoutError',  # T297708
+                               'DBUnexpectedError',  # T360930
                                'ReadOnlyError',  # T61227
                                'readonly',  # T154011
                                ]

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

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

Reply via email to