Skip to content

Commit

Permalink
Try to work around error with Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bskari committed May 5, 2015
1 parent 8147d3b commit f1a8acf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion interactive_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ def interactive_control(host, port, configuration):
command = append('right')

print(command)
sock.sendto(configuration[command], (host, port))
try:
sock.sendto(configuration[command], (host, port))
except TypeError:
# Windows + Python 3 workaround?
sock.sendto(bytes(configuration[command]), (host, port))

# Show the command and JSON
background.fill(black)
Expand Down

0 comments on commit f1a8acf

Please sign in to comment.