Internal Jira: CDPD-44973 Co-authored-by: Harsh Gupta <42064744+Harshg999@users.noreply.github.com>
@@ -101,7 +101,10 @@ def api_dump(response):
#detect if avro file
if(data[:3] == '\x4F\x62\x6A'):
#write data to file in memory
- output = io.StringIO()
+ try:
+ output = io.StringIO()
+ except:
+ output = string_io()
output.write(data)
#read and parse avro