mirror of
https://github.com/craigerl/aprsd.git
synced 2025-04-13 23:18:44 -04:00
fixed fortune. yet another unicode issue, tested in py3 and py2
This commit is contained in:
parent
c5517a7cb5
commit
2bebd83449
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user