You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
aprs messages with unicode in them triggers crash
To Reproduce
Steps to reproduce the behavior:
run ./main.py
wait until some funnyman messages "🤪" over packet
see this python trace dump:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args, **self._kwargs)
File "/home/chip/pypacket/pypacket/base/receiver.py", line 136, in __decoder_worker
self.__process_decoded_packet(cleaned_packet)
File "/home/chip/pypacket/pypacket/base/receiver.py", line 102, in __process_decoded_packet
processor.handle(decoded_packet)
File "/home/chip/pypacket/pypacket/implementations/cli_processor.py", line 32, in handle
self.log_handler.log_packet(packet, print_friendly_packet)
File "/home/chip/pypacket/pypacket/util/logger.py", line 58, in log_packet
self.__log_any(Colors.RESET, '', friendly_message)
File "/home/chip/pypacket/pypacket/util/logger.py", line 69, in __log_any
print(color + prefix + Colors.RESET + log_message)
UnicodeEncodeError: 'ascii' codec can't encode character '\U0001f92a' in position 444: ordinal not in range(128)
Expected behavior
one more log line.
Screenshots
see pasted python trace
System info (please complete the following information):
OS: [pocketchip running debian-ish ~2016]
Python Version 3.9 built from source
PyPacket Version: HEAD from feb 2021
The text was updated successfully, but these errors were encountered:
Describe the bug
aprs messages with unicode in them triggers crash
To Reproduce
Steps to reproduce the behavior:
see this python trace dump:
Expected behavior
one more log line.
Screenshots
see pasted python trace
System info (please complete the following information):
The text was updated successfully, but these errors were encountered: