Quote user_id that is consist of numbers only

Though the user_id that contains only numbers, for example 1234,
is valid Zanata ID, it raises an exception:

  Traceback (most recent call last):
    File "./zanata_stats.py", line 271, in <module>
      main()
    File "./zanata_stats.py", line 261, in main
      language_teams, options.project)
    File "./zanata_stats.py", line 166, in get_zanata_stats
      user_contributes = statisticdata[user_id]
  KeyError: 1234

Change-Id: Id1325204d6979190d3c4c6ae5410960fe221b57e
This commit is contained in:
KATO Tomoyuki 2016-08-04 11:52:08 +09:00
parent 4cf0138b7c
commit 40e4c7a3bf
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ ca:
translators:
- ealcaniz
- iranzo
- 1974
- '1974'
cs:
coordinators:
- Ondrej Novy (onovy)