2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 11:01:09 +00:00

Change apiclient to append if outputting to existing file

This commit is contained in:
Jarrod Johnson 2021-05-05 17:45:04 -04:00
parent 8543129fb9
commit d69eb6ef12

View File

@ -143,7 +143,7 @@ if __name__ == '__main__':
except ValueError:
data = None
if outbin:
with open(outbin, 'wb') as outf:
with open(outbin, 'ab+') as outf:
reader = HTTPSClient(json=json).grab_url(
sys.argv[1], data, returnrsp=True)
chunk = reader.read(16384)