* fix: not a bright idea to use ctx.ui in a ui constructor :)
This commit is contained in:
+2
-1
@@ -89,7 +89,8 @@ class PisiCLI(object):
|
|||||||
|
|
||||||
self.command = Command.get_command(cmd_name)
|
self.command = Command.get_command(cmd_name)
|
||||||
if not self.command:
|
if not self.command:
|
||||||
ctx.ui.error(_("Unrecognized command: %s") % cmd_name)
|
str = _("Unrecognized command: %s") % cmd_name
|
||||||
|
print str.encode('utf-8')
|
||||||
self.die()
|
self.die()
|
||||||
|
|
||||||
def die(self):
|
def die(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user