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

TypeError when sftp connection fails #206

Open
ThiefMaster opened this issue Jun 25, 2015 · 1 comment
Open

TypeError when sftp connection fails #206

ThiefMaster opened this issue Jun 25, 2015 · 1 comment

Comments

@ThiefMaster
Copy link

[adrian@blackhole:~/dev/indico/src:wip/attachments *%]> fsls sftp://blackhole/tmp/
fsnotifier-remote.log  krb5cc_1000  maildump.pid  maildump.sqlite  portage  tmux-0  tmux-1000

[adrian@blackhole:~/dev/indico/src:wip/attachments *%]> fsls sftp://nosuchuser@blackhole/tmp/
Traceback (most recent call last):
  File "/home/adrian/dev/indico/env/bin/fsls", line 9, in <module>
    load_entry_point('fs==0.5.2', 'console_scripts', 'fsls')()
  File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/fs/commands/fsls.py", line 172, in run
    return FSls().run()
  File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/fs/commands/runner.py", line 354, in run
    self.error(self.wrap_error(unicode(e)) + '\n')
  File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/fs/errors.py", line 72, in __unicode__
    return unicode(self.msg, encoding=sys.getfilesystemencoding(), errors='replace') % keys
TypeError: decoding Unicode is not supported
[adrian@blackhole:~/dev/indico/src:wip/attachments *%]>
@ThiefMaster
Copy link
Author

The patch in #184 seems to fix it

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