Catch parcelnotfound by untracking
This commit is contained in:
parent
6f39752120
commit
6f1b58d6a5
1 changed files with 6 additions and 2 deletions
|
|
@ -131,9 +131,13 @@ class Parceloob(ReplApplication):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not removed:
|
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:
|
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
|
return 2
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue