aboutsummaryrefslogtreecommitdiff
path: root/nxt-python-fantom/nxt/fantomglue.py
diff options
context:
space:
mode:
Diffstat (limited to 'nxt-python-fantom/nxt/fantomglue.py')
-rw-r--r--nxt-python-fantom/nxt/fantomglue.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nxt-python-fantom/nxt/fantomglue.py b/nxt-python-fantom/nxt/fantomglue.py
index a977696..16d9608 100644
--- a/nxt-python-fantom/nxt/fantomglue.py
+++ b/nxt-python-fantom/nxt/fantomglue.py
@@ -70,6 +70,9 @@ class BluetoothSocket:
"""Destroy interface."""
if self._sock is not None:
del self._sock
+ print "NXT object deleted"
+ else:
+ print "No NXT Object when calling __del__ for BluetoothSocket"
class BluetoothError(IOError):
pass
@@ -149,6 +152,9 @@ class USBSocket:
"""Destroy interface."""
if self._sock is not None:
del self._sock
+ print "NXT object deleted"
+ else:
+ print "No NXT Object when calling __del__ for USBSocket"
if __name__ == '__main__':
#get_info = False