jenkins-bot has submitted this change and it was merged.
Change subject: Confirm whether dictionary already has entries.
......................................................................
Confirm whether dictionary already has entries.
Change-Id: Ib31e750f240776df150387a78ca6dfb9e9dfc648
---
M scripts/maintenance/make_i18n_dict.py
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/maintenance/make_i18n_dict.py
b/scripts/maintenance/make_i18n_dict.py
index 2025bbc..16edd6a 100755
--- a/scripts/maintenance/make_i18n_dict.py
+++ b/scripts/maintenance/make_i18n_dict.py
@@ -67,6 +67,10 @@
def print_all(self):
"""Pretty print the dict as a file content to
screen."""
+ if not self.dict:
+ print('No messages found, read them first.\n'
+ 'Use "run" or "to_json" methods')
+ return
keys = list(self.dict.keys())
keys.remove('qqq')
keys.sort()
--
To view, visit
https://gerrit.wikimedia.org/r/270589
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib31e750f240776df150387a78ca6dfb9e9dfc648
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Siebrand <siebrand(a)kitano.nl>
Gerrit-Reviewer: jenkins-bot <>