Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding error #48

Open
chris0385 opened this issue Jun 2, 2017 · 0 comments
Open

Encoding error #48

chris0385 opened this issue Jun 2, 2017 · 0 comments

Comments

@chris0385
Copy link

Version is 2.1.5, I got the following exception

Traceback (most recent call last):
File "/usr/local/bin/jira-cli", line 11, in
sys.exit(cli())
File "/usr/local/lib/python2.7/dist-packages/jiracli/interface.py", line 267, in cli
return post_args.cmd(jira, post_args).execute()
File "/usr/local/lib/python2.7/dist-packages/jiracli/processor.py", line 27, in execute
return self.eval()
File "/usr/local/lib/python2.7/dist-packages/jiracli/processor.py", line 72, in eval
comments_only=self.args.comments_only
File "/usr/local/lib/python2.7/dist-packages/jiracli/bridge/init.py", line 61, in format_issue
ret_str = ret_str.replace(k, data)

I fixed it by editing init.py line 63:

            for k, v in groups:
                if v.lower() in special_fields.keys():
                    key=issue[v.lower()]
                    data = "" or JiraBridge.object_from_key(key, special_fields[v.lower()])["name"]
                    ret_str = ret_str.replace(k, data)
                else:
                    ret_str = ret_str.replace(k, issue.setdefault(v.lower(),""))#.encode('utf-8') <---- remove this encode
            return ret_str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant