Skip to content

Commit d7ed1d5

Browse files
author
Iain R. Learmonth
committed
Print ints instead of attempting to iterate over them
1 parent 74fdec8 commit d7ed1d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

duckduckgo.py

Lines changed: 1 addition & 1 deletion
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)