ibmcb / cbtool

Cloud Rapid Experimentation and Analysis Toolkit
Apache License 2.0
79 stars 49 forks source link

Add try/except for using .decode attribute #435

Closed tli16 closed 11 months ago

tli16 commented 11 months ago

@mraygalaxy @mraygalaxy2
A follow up PR for https://github.com/ibmcb/cbtool/pull/434 We also noticed in some other cases, the table names returned during cloudbench initialization were still regular strings. So use try/except to attempt to decode the table name x[0]. If it hits an AttributeError, then use the original x[0] instead.