Skip to content

Commit 017a696

Browse files
authored
Break on hex formatting error in conversion
1 parent f052ede commit 017a696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ProperTree.command

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ class ProperTree:
192192
from_value = from_value.replace(" ","")
193193
if [x for x in from_value if x.lower() not in "0123456789abcdef"]:
194194
self.tk.bell()
195-
if not mb.showerror("Invalid Hex Data","Invalid character in passed hex data.",parent=self.tk):
196-
return
195+
mb.showerror("Invalid Hex Data","Invalid character in passed hex data.",parent=self.tk)
196+
return
197197
try:
198198
# Handle the from data
199199
if sys.version_info >= (3,0):

0 commit comments

Comments
 (0)