diff --git a/wol.py b/wol.py index 835e4aa..b5cbfe6 100755 --- a/wol.py +++ b/wol.py @@ -96,7 +96,7 @@ def handle(self): logging.debug('Connected {}'.format(client)) try: while self.rfile: - hostname = self.rfile.readline().strip() + hostname = self.rfile.readline().decode('ascii').strip() if hostname: logging.info('Request WoL at "{}" from {}'.format(hostname, client)) success = wake(hostname)