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

View file

@ -144,7 +144,8 @@ def parseOpts():
import locale import locale
profile, config_path = parseOpts() profile, config_path = parseOpts()
config_path = unicode(config_path, locale.getpreferredencoding()) if config_path:
config_path = unicode(config_path, locale.getpreferredencoding())
del parseOpts del parseOpts
profile = unicode(profile, locale.getpreferredencoding()) profile = unicode(profile, locale.getpreferredencoding())