diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-02-25 15:15:38 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-02-25 15:15:38 +0100 |
commit | bc0dd803e84498406bfbf7d2f8e852ea59222990 (patch) | |
tree | 08d2b3a8ddf43be1776d92971cff3df892c14447 | |
parent | 0618b38d34827e0e9ba2a0dbff7964761b2b7662 (diff) | |
download | mpd-box-bc0dd803e84498406bfbf7d2f8e852ea59222990.tar.gz mpd-box-bc0dd803e84498406bfbf7d2f8e852ea59222990.tar.xz |
daemon: raise DaemonException after wrong client greeting
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | daemon.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ class Daemon: # and sends junk before the ready message if not incoming.endswith("ready"): logger.error("Got reply: '"+incoming+"'") - raise Exception("Wrong or no client greeting") + raise DaemonException("Wrong or no client greeting") self.ser.timeout = 1 logger.debug("got client greeting") |