fix error
This commit is contained in:
parent
9969978381
commit
578326c8d2
1 changed files with 4 additions and 1 deletions
5
minitch.py
Normal file → Executable file
5
minitch.py
Normal file → Executable file
|
@ -154,7 +154,10 @@ def main():
|
||||||
parser_search.set_defaults(func=parser_list)
|
parser_search.set_defaults(func=parser_list)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
args.func(args)
|
try:
|
||||||
|
args.func(args)
|
||||||
|
except AttributeError:
|
||||||
|
parser.error('too few arguments')
|
||||||
|
|
||||||
write_config()
|
write_config()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue