aboutsummaryrefslogtreecommitdiff
path: root/ParrotZik.py
diff options
context:
space:
mode:
authorMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-12 14:10:00 +0200
committerMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-12 14:24:53 +0200
commit6c1a6a589a99da15ab936bf11cf3640ba9b24182 (patch)
treeee17f45d4a5d636ea6bbc09237a3cc1a8d0e1134 /ParrotZik.py
parentb7ccaa7015df61c101b3aa40e44feb2b5da287a0 (diff)
downloadpyParrotZikTCP-6c1a6a589a99da15ab936bf11cf3640ba9b24182.tar.xz
pyParrotZikTCP-6c1a6a589a99da15ab936bf11cf3640ba9b24182.zip
Refactor.
Diffstat (limited to 'ParrotZik.py')
-rw-r--r--ParrotZik.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ParrotZik.py b/ParrotZik.py
index a934a90..be84411 100644
--- a/ParrotZik.py
+++ b/ParrotZik.py
@@ -62,12 +62,12 @@ class ParrotZik(object):
self.BatteryCharging = True
else:
self.BatteryCharging = False
- except:
+ except Exception:
pass
try:
print "notification received" + data.notify["path"]
- except:
+ except Exception:
pass
return self.BatteryLevel
@@ -129,7 +129,7 @@ class ParrotZik(object):
def sendMessage(self, message):
try:
self.sock.send(str(message))
- except:
+ except Exception:
self.sock = ""
return
if sys.platform == "darwin":