pawelrychlik / jira-dependency-graph

Graph visualizer for JIRA tickets' dependencies
MIT License
282 stars 90 forks source link

diacritics in link name causes app crash #34

Open bart9k opened 5 years ago

bart9k commented 5 years ago

We have localized link names to Czech using diacritics. Then script process such link name it crashes with following:

Fetching RIO-1887 RIO-1887 => souvisí s => RIO-1897 Traceback (most recent call last): File "jira-dependency-graph.py", line 286, in <module> main() File "jira-dependency-graph.py", line 277, in main options.ignore_subtasks, options.traverse, options.word_wrap) File "jira-dependency-graph.py", line 201, in build_graph_data return walk(start_issue_key, []) File "jira-dependency-graph.py", line 197, in walk walk(child, graph) File "jira-dependency-graph.py", line 189, in walk result = process_link(fields, issue_key, other_link) File "jira-dependency-graph.py", line 142, in process_link link_type, extra) UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 6: ordinal not in range(128)

bart9k commented 5 years ago

This partially fixed my problem. from __future__ import unicode_literals

pawelrychlik commented 4 years ago

@bart9k if that's not too much to ask for - could you please send a pull-request? Thanks in advance.

bart9k commented 4 years ago

@pawelrychlik, I'll do bit more testing and if it is successful I'll pull my changes.

bart9k commented 4 years ago

Sorry for delay. But my suggested fix is not working well it covers issue only partially.