Fix error when no argument is given
This commit is contained in:
parent
713d40a99c
commit
559063ac26
|
@ -132,5 +132,8 @@ def req_delivery(address_file='default_address.json'):
|
|||
})))
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) == 1:
|
||||
req_delivery()
|
||||
else:
|
||||
req_delivery(sys.argv[1])
|
||||
|
||||
|
|
Loading…
Reference in a new issue