Commit 2f49c3db authored by Seblu's avatar Seblu
Browse files

args check in expert command

parent 25e8d49d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@ class Command_expert(Command):
    '''Switch in expert mode'''

    def __call__(self, argv):
        if len(argv) != 1:
            raise cmdBadArgument()
        h = list(self.printer.history)
        self.printer.history.read(self.cli.settings.get("expert", ""))
        try: