catch exception for json files with a 'NoneType' object

Review Request #7184 - Created Oct. 7, 2016 and submitted

Information
Burkhard Lück
kde
Reviewers
l10n
Scripty reports in ftp://l10n.kde.org/161007.trunk_l10n-kf5 for files like ghelp.json:
 
 Traceback (most recent call last):
  File "./scripts/filljsonfrompo.py", line 139, in <module>
    main()
  File "./scripts/filljsonfrompo.py", line 109, in main
    if len(set(jsondata.get(kpluginfield).keys()).intersection(translationfields)) == 0:
AttributeError: 'NoneType' object has no attribute 'keys'
cannot process /home/scripty/prod/git-unstable-kf5/frameworks_kio/src/ioslaves/help/ghelp.json: Traceback (most recent call last):

none

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Luigi Toscano
Burkhard Lück
Luigi Toscano
Burkhard Lück
Review request changed

Status: Closed (submitted)

Change Summary:

Committed revision 1471702
Loading...