Check that there is an argument to gajim-remove handle_uri function. Fixes #5660
This commit is contained in:
parent
033843093f
commit
17d142550b
|
@ -534,6 +534,8 @@ class GajimRemote:
|
|||
self.arguments += ['']*(len(args)-i)
|
||||
|
||||
def handle_uri(self):
|
||||
if len(sys.argv) < 3:
|
||||
send_error(_('No uri given'))
|
||||
if not sys.argv[2].startswith('xmpp:'):
|
||||
send_error(_('Wrong uri'))
|
||||
sys.argv[2] = sys.argv[2][5:]
|
||||
|
|
Loading…
Reference in New Issue