Skip to content

Commit

Permalink
fix TypeError: 'str' object is not callable
Browse files Browse the repository at this point in the history
  • Loading branch information
formiano committed Sep 5, 2024
1 parent 64b97c9 commit 40f19d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/python/Screens/BluePanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ def closeSocket(self):
if self.deamonSocket:
self.deamonSocket.close()
if self.deamonSocket.fileno() == -1:
self.callback()
print("Callback:", self.callback)
print("Type:", type(self.callback))
if callable(self.callback):
self.callback()
else:
print(f"Warning: Attempted to call a non-callable callback: {self.callback}")


class CamSetupCommon(Setup):
Expand Down

0 comments on commit 40f19d0

Please sign in to comment.