Skip to content
Permalink
Browse files

fix UnicodeWarning when exclude command is used with non-latin args

like this:

$ caja-dropbox exclude тест
$ caja-dropbox exclude тест тест2

it's not the correct command usage, but we don't need a warning anyway
  • Loading branch information...
monsta committed Jan 10, 2019
1 parent 343a3fb commit 55e4f9b9e8b8ece3c8a25d108dde5ebdf9aef397
Showing with 2 additions and 2 deletions.
  1. +2 −2 caja-dropbox.in
@@ -1384,10 +1384,10 @@ Any specified path must be within Dropbox.
console_print(u"Dropbox daemon stopped.")
except DropboxCommand.CouldntConnectError, e:
console_print(u"Dropbox isn't running!")
elif len(args) == 1 and args[0] == u"list":
elif len(args) == 1 and args[0].decode(sys.getfilesystemencoding()) == u"list":
exclude([])
elif len(args) >= 2:
sub_command = args[0]
sub_command = args[0].decode(sys.getfilesystemencoding())
paths = args[1:]
absolute_paths = [unicode_abspath(path.decode(sys.getfilesystemencoding())) for path in paths]
if sub_command == u"add":

0 comments on commit 55e4f9b

Please sign in to comment.
You can’t perform that action at this time.