Skip to content

Commit

Permalink
Revert "Remove unnecessary decode('ascii')"
Browse files Browse the repository at this point in the history
This reverts commit 411e569.
  • Loading branch information
Flowdalic committed Sep 9, 2022
1 parent a1df4c0 commit 9d1045b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9d1045b

Please sign in to comment.