jenkins-bot submitted this change.
[IMPR] Highlight the family name in case of AssertionError
See T265714
Change-Id: I808ce81ef2f6b0e0ff30a1164069a109fb029b6e
---
M generate_family_file.py
M pywikibot/family.py
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/generate_family_file.py b/generate_family_file.py
index 770adb8..9865e6d 100755
--- a/generate_family_file.py
+++ b/generate_family_file.py
@@ -40,7 +40,7 @@
name = input('Please insert a short name (eg: freeciv): ')
assert all(x in NAME_CHARACTERS for x in name), \
- 'Name of family {} must be ASCII letters and digits' \
+ 'Name of family "{}" must be ASCII letters and digits ' \
'[a-zA-Z0-9]'.format(name)
self.dointerwiki = dointerwiki
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 3e46804..07e2764 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -691,8 +691,8 @@
fam = config.family
assert all(x in NAME_CHARACTERS for x in fam), \
- 'Name of family {} must be ASCII letters and digits [a-zA-Z0-9]' \
- .format(fam)
+ 'Name of family "{}" must be ASCII letters and digits ' \
+ '[a-zA-Z0-9]'.format(fam)
if fam in Family._families:
return Family._families[fam]
To view, visit change 634489. To unsubscribe, or for help writing mail filters, visit settings.