We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95587b9 commit 25fbc1aCopy full SHA for 25fbc1a
instana/agent.py
@@ -135,5 +135,10 @@ def set_host(self, host):
135
def set_port(self, port):
136
self.port = port
137
138
- def set_from(self, from_):
139
- self.from_ = From(**json.loads(from_))
+ def set_from(self, json_string):
+ if type(json_string) is bytes:
140
+ raw_json = json_string.decode("UTF-8")
141
+ else:
142
+ raw_json = json_string
143
+
144
+ self.from_ = From(**json.loads(raw_json))
0 commit comments