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

AttributeError("'dict' object has no attribute 'decode'",) when File/Open Recent Repository/* #634

Closed
Vdragon opened this Issue Dec 20, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@Vdragon
Contributor

Vdragon commented Dec 20, 2016

Probably not always reproducible, I often uses this function and only today it breaks.

Traceback (most recent call last):

  File "/usr/local/share/git-cola/lib/cola/cmds.py", line 1874, in do_cmd
    return cmd.do()

  File "/usr/local/share/git-cola/lib/cola/cmds.py", line 1079, in do
    if self.model.set_worktree(self.repo_path):

  File "/usr/local/share/git-cola/lib/cola/models/main.py", line 118, in set_worktree
    self.git.set_worktree(worktree)

  File "/usr/local/share/git-cola/lib/cola/git.py", line 150, in set_worktree
    path = core.decode(path)

  File "/usr/local/share/git-cola/lib/cola/core.py", line 62, in decode
    return enc.decode('utf-8', errors='ignore')

AttributeError: 'dict' object has no attribute 'decode'

Reporter's Environment

Operating System

Ubuntu 16.04 AMD64

Python

2.7.12

Git

2.7.4

Qt

4.8.7

QtPy

1.1.1

PyQt4 (APIv2)

4.11.4

Git Cola

commit 8225f20

Locale

LANG=zh_TW.UTF-8
LANGUAGE=zh_TW:zh_HK:zh
LC_CTYPE="zh_TW.UTF-8"
LC_NUMERIC="zh_TW.UTF-8"
LC_TIME="zh_TW.UTF-8"
LC_COLLATE="zh_TW.UTF-8"
LC_MONETARY="zh_TW.UTF-8"
LC_MESSAGES="zh_TW.UTF-8"
LC_PAPER="zh_TW.UTF-8"
LC_NAME="zh_TW.UTF-8"
LC_ADDRESS="zh_TW.UTF-8"
LC_TELEPHONE="zh_TW.UTF-8"
LC_MEASUREMENT="zh_TW.UTF-8"
LC_IDENTIFICATION="zh_TW.UTF-8"
LC_ALL=

@Vdragon Vdragon added the bug label Dec 20, 2016

@davvid davvid closed this in ca774a3 Jan 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment