Commit 6f1b58d6 authored by Florent Fourcot's avatar Florent Fourcot

Catch parcelnotfound by untracking

parent 6f397521
......@@ -131,9 +131,13 @@ class Parceloob(ReplApplication):
pass
if not removed:
parcel = self.get_object(line, 'get_parcel_tracking')
try:
parcel = self.get_object(line, 'get_parcel_tracking')
except ParcelNotFound:
parcel = False
if not parcel:
print >>self.stderr, 'Error: the parcel "%s" is not found' % line
print >>self.stderr, 'Error: the parcel "%s" is not found. Did you provide the full id@backend parameter?' % line
return 2
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment