1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-09-27 15:46:53 -04:00

fixed fortune. yet another unicode issue, tested in py3 and py2

This commit is contained in:
Craig Lamparter 2020-12-10 15:54:38 -08:00
parent c5517a7cb5
commit 2bebd83449

View File

@ -813,6 +813,8 @@ def server(loglevel, quiet):
LOG.debug("FORTUNE")
process = subprocess.Popen(['/usr/games/fortune', '-s', '-n 60'], stdout=subprocess.PIPE)
reply = process.communicate()[0]
#send_message(fromcall, reply.rstrip())
reply = reply.decode(errors='ignore')
send_message(fromcall, reply.rstrip())
# PING (p)