Update shipment validation and error message handling
This commit is contained in:
parent
9a79d06544
commit
ecc540ab6e
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ def main():
|
|||
f"Updated shipment for {args.tracking_number} with carrier {args.carrier}"
|
||||
)
|
||||
|
||||
if shipment is None and args.update:
|
||||
if not shipment and args.update:
|
||||
print(f"Shipment {args.tracking_number} does not exist. Remove -u to create.")
|
||||
exit(1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue