mneethiraj commented on PR #197: URL: https://github.com/apache/atlas/pull/197#issuecomment-1274053278
@dolfinus - thank you reporting this issue and the patch. Use of f-string formatting will require Python 3.6 or later. I suggest to retain use of .format() method to change Python version requirement. How about the following alternate fix? ``` body = "" if response.content: try: body = response.json() except Exception: body = response.content msg = "Metadata service API {method} {path} failed with status {status}. Response body is: {body}".format(**{'method': api.method, 'path': api.path, 'status': response.status_code, 'body': body}) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@atlas.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org