Commit a6213b4b64e1f750e6512edddce80057a4c1d541
1 parent
7fd9f32b
Exists in
master
FIX: Error in import DICOM file (TypeError: Object of type 'bytes' is not JSON serializable)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/session.py
... | ... | @@ -273,7 +273,7 @@ class Session(with_metaclass(Singleton, object)): |
273 | 273 | return self.last_dicom_folder |
274 | 274 | |
275 | 275 | def SetLastDicomFolder(self, folder): |
276 | - self.last_dicom_folder = folder | |
276 | + self.last_dicom_folder = decode(folder, FS_ENCODE) | |
277 | 277 | self.WriteSessionFile() |
278 | 278 | |
279 | 279 | def _update_cfg_from_dict(self, config, cfg_dict): | ... | ... |