summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/team.py
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff/gui/frames/team.py')
-rw-r--r--jfr_playoff/gui/frames/team.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jfr_playoff/gui/frames/team.py b/jfr_playoff/gui/frames/team.py
index f1ce7d1..ada8f24 100644
--- a/jfr_playoff/gui/frames/team.py
+++ b/jfr_playoff/gui/frames/team.py
@@ -163,8 +163,8 @@ class DBSelectionField(ttk.Entry):
self.insert(0, new_suggestion)
self.selection_range(len(prefix), tk.END)
return 'break'
- except tk.TclError:
- # no text selection
+ except (tk.TclError, ValueError):
+ # no text selection or selection was altered, ignore
pass
def _onChange(self, event):