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:
parent
8543129fb9
commit
d69eb6ef12
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user