Parcourir la source

Fix printing HTTP response line to stdout instead of stderr

master
JustAnotherArchivist il y a 2 ans
Parent
révision
f98fdd5f01
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      ia-cdx-search

+ 1
- 1
ia-cdx-search Voir le fichier

@@ -24,7 +24,7 @@ async def wait_first_and_print(tasks):
return
task = tasks.popleft()
url, code, o = await task
print(f'{code} {url}')
print(f'{code} {url}', file = sys.stderr)
assert o, 'got empty response'
fields = o[0]
assert all(len(v) == len(fields) for v in o[1:]), 'got unexpected response format'


Chargement…
Annuler
Enregistrer