Fix error when no argument is given

This commit is contained in:
Enrique Barcelli 2024-08-27 21:54:39 +08:00
parent 713d40a99c
commit 559063ac26
Signed by: kikobar
GPG key ID: 006C13A68E25D3B7

View file

@ -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])