Commit b510c29e authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fix for MaybeEncodingError. Fix for IndexError within locks module.

parent eb9f2ae9
......@@ -48,7 +48,7 @@ class MultiSlotLock(Lock):
def existing_locks(self):
return [i.decode('utf8').split('lock:')[1] for i in self.conn.keys()]
return [i.decode('utf8').split('lock:')[1] for i in self.conn.keys() if i.decode('utf8').startswith('lock:')]
def get_free_slot_name(self):
free_slots = [sn for sn in self.allowed_slot_names if sn not in self.existing_locks]
......@@ -1654,6 +1654,7 @@ class GMS_object(Dataset):
del self.masks
del self.mask_clouds_confidence
del self.ac_errors
del self.spec_homo_errors
del self.accuracy_layers
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment