pklaus / brother_ql_web

A Python-based web service to print labels on Brother QL label printers. Based on brother_ql: https://github.com/pklaus/brother_ql
GNU General Public License v3.0
261 stars 127 forks source link

Fixed a bug where certain fonts caused the script to crash #24

Closed v8cheeseburger closed 4 years ago

v8cheeseburger commented 5 years ago

Simple check to stop the below from happening - seems to be certain fonts (none-ASCII names?)


deprecation warning: brother_ql.devicedependent is deprecated and will be removed in a future release Traceback (most recent call last): File "./brother_ql_web.py", line 296, in main() File "./brother_ql_web.py", line 271, in main FONTS = get_fonts() File "/Users/justindm/Development/printer/brother_ql_web/font_helpers.py", line 25, in get_fonts styles = parts[2].split('=')[1].split(',') IndexError: list index out of range

pklaus commented 4 years ago

Thank you for reporting this. Strange behaviour of fc-list!