From fb260f29e197981f74cb3e8cbc6d70c044932264 Mon Sep 17 00:00:00 2001 From: skullY Date: Fri, 15 Nov 2019 23:15:07 -0800 Subject: [PATCH] Fix commands with no arguments --- milc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milc.py b/milc.py index 6b5347b..e8599ef 100644 --- a/milc.py +++ b/milc.py @@ -501,7 +501,7 @@ class MILC(object): if argument not in self.arg_only: # Find the argument's section - if argument in self.default_arguments[self._entrypoint.__name__]: + if self._entrypoint.__name__ in self.default_arguments and argument in self.default_arguments[self._entrypoint.__name__]: argument_found = True section = self._entrypoint.__name__ if argument in self.default_arguments['general']: