Commandline args are always type str in Python3

Fixes #8970
This commit is contained in:
Philipp Hörist 2018-03-21 19:17:15 +01:00
parent abdca0eaac
commit 57d4ddcd57
1 changed files with 1 additions and 2 deletions

View File

@ -480,8 +480,7 @@ class GajimRemote:
"""
Calls self.method with arguments from sys.argv[2:]
"""
args = [i.decode(PREFERRED_ENCODING) for i in self.arguments]
args = [dbus.String(i) for i in args]
args = [dbus.String(i) for i in self.arguments]
try:
res = self.method(*args)
return res