From 25961e0e6879876cab30e818359729cc1518dc99 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sun, 23 Oct 2011 19:52:32 +0200
Subject: [PATCH] fix traceback when we don't use a profile

---
 src/gajim.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gajim.py b/src/gajim.py
index 486e953d3c..e8f1323927 100644
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -144,7 +144,8 @@ def parseOpts():
 
 import locale
 profile, config_path = parseOpts()
-config_path = unicode(config_path, locale.getpreferredencoding())
+if config_path:
+    config_path = unicode(config_path, locale.getpreferredencoding())
 del parseOpts
 
 profile = unicode(profile, locale.getpreferredencoding())
-- 
GitLab