🐛 Fixed pick history start error when empty

This commit is contained in:
GeoffreyCoulaud
2023-06-05 00:19:22 +02:00
parent ff0ba00733
commit 67a5a364f7

View File

@@ -47,7 +47,7 @@ class PickHistory(Sized):
with self.timestamps_lock: with self.timestamps_lock:
try: try:
entry = self.timestamps[0] entry = self.timestamps[0]
except KeyError: except IndexError:
entry = time() entry = time()
return entry return entry