Update shipment validation and error message handling

This commit is contained in:
Kumi 2023-09-12 08:23:40 +02:00
parent 9a79d06544
commit ecc540ab6e
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

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