Serialise microscope ID to string
UUID objects don't serialise with `json.dumps` and thus cause errors when we try to embed `thing_state` into images.
This commit is contained in:
parent
f51d6ced71
commit
074b9c67f8
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ class SettingsManager(Thing):
|
|||
def thing_state(self) -> Mapping:
|
||||
state = {
|
||||
"hostname": gethostname(),
|
||||
"microscope-uuid": self.microscope_id,
|
||||
"microscope-uuid": str(self.microscope_id),
|
||||
}
|
||||
metadata = self.external_metadata
|
||||
for k in self.external_metadata_in_state:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue