From b5a305340d0b0dc694e06620177b608b217db531 Mon Sep 17 00:00:00 2001
From: Joe R <joeraz5@verizon.net>
Date: Tue, 26 Jul 2022 21:35:44 -0400
Subject: [PATCH] Checking for "None" drag handlers to prevent errors when
 clicking certain stacks.

---
 pysollib/stack.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pysollib/stack.py b/pysollib/stack.py
index 06d0cdfc..da045b05 100644
--- a/pysollib/stack.py
+++ b/pysollib/stack.py
@@ -1123,7 +1123,7 @@ class Stack:
         if start_drag:
             # this handler may start a drag operation
             r = handler(event)
-            if r <= 0:
+            if r is not None and r <= 0:
                 sound = r == 0
                 self.startDrag(event, sound=sound)
         else: