Skip to content

Commit 745deeb

Browse files
committed
Merge pull request #5 from irl/fix-cli
Print ints instead of attempting to iterate over them
2 parents 74fdec8 + d7ed1d5 commit 745deeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

duckduckgo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def main():
171171
keys.sort()
172172
for key in keys:
173173
sys.stdout.write(key)
174-
if type(q.json[key]) in [str,unicode]: print(':', q.json[key])
174+
if type(q.json[key]) in [str,unicode,int]: print(':', q.json[key])
175175
else:
176176
sys.stdout.write('\n')
177177
for i in q.json[key]: print('\t',i)

0 commit comments

Comments
 (0)