diff options
author | jan Iversen <jani@documentfoundation.org> | 2017-01-16 18:29:52 +0100 |
---|---|---|
committer | jan Iversen <jani@documentfoundation.org> | 2017-01-16 18:29:52 +0100 |
commit | b7e6f68858198cef294774e85134088828c742c3 (patch) | |
tree | 550320e808e6b33728f4b8fe762f2f8757f718ee /bin | |
parent | dd7539262d5d1a25da0856f8e1965cf0e4351ff9 (diff) |
gbuild-to-ide, temporary fix
added test if key is in json file,
this is needed at least temporary.
Change-Id: I6fca2dff7fd198ac6b324869146c14de5f38b414
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gbuild-to-ide | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide index cf44d5ecdcda..47eaebd84231 100755 --- a/bin/gbuild-to-ide +++ b/bin/gbuild-to-ide @@ -117,9 +117,7 @@ class GbuildParser: location = os.path.dirname(jsondata['MAKEFILE']) filesSorted = {} for i in jsonSrc: - if len(jsondata[i]) > 0: - if jsonSrc[i] == '?': - raise Exception('type need conversion') + if i in jsondata and len(jsondata[i]) > 0: filesSorted[i] = sorted(GbuildParser.__split_objs(jsondata[i])) else: filesSorted[i] = [] |