fix traceback when we don't use a profile

This commit is contained in:
Yann Leboulanger 2011-10-23 19:52:32 +02:00
parent 6a2d835eab
commit 25961e0e68
1 changed files with 2 additions and 1 deletions

View File

@ -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())