@@ -51,7 +51,14 @@ import trackingmore
5151
5252trackingmore.api_key = ' you api key'
5353
54- couriers = trackingmore.courier.get_all_couriers()
54+ try :
55+ couriers = trackingmore.courier.get_all_couriers()
56+ print (couriers)
57+ except trackingmore.exception.TrackingMoreException as ce:
58+ print (ce)
59+ except Exception as e:
60+ print (" other error:" , e)
61+
5562```
5663
5764## Testing
8996 couriers = trackingmore.courier.detect(params)
9097 print (couriers)
9198except trackingmore.exception.TrackingMoreException as ce:
92- print (ce)
99+ print (ce)
93100
94101# Tracking number cannot be empty
95102```
104111 print (result)
105112except trackingmore.exception.TrackingMoreException as ce:
106113 print (ce)
114+ except Exception as e:
115+ print (" other error:" , e)
116+
107117```
108118
109119##### Return a list of matched couriers based on submitted tracking number.
115125 print (result)
116126except trackingmore.exception.TrackingMoreException as ce:
117127 print (ce)
128+ except Exception as e:
129+ print (" other error:" , e)
118130```
119131
120132## Trackings
127139 print (result)
128140except trackingmore.exception.TrackingMoreException as ce:
129141 print (ce)
142+ except Exception as e:
143+ print (" other error:" , e)
130144```
131145
132146##### Get tracking results of multiple trackings.
141155 print (result)
142156except trackingmore.exception.TrackingMoreException as ce:
143157 print (ce)
158+ except Exception as e:
159+ print (" other error:" , e)
144160```
145161
146162##### Create multiple trackings (Max. 40 tracking numbers create in one call).
153169 print (result)
154170except trackingmore.exception.TrackingMoreException as ce:
155171 print (ce)
172+ except Exception as e:
173+ print (" other error:" , e)
156174```
157175
158176##### Update a tracking by ID.
165183 print (result)
166184except trackingmore.exception.TrackingMoreException as ce:
167185 print (ce)
186+ except Exception as e:
187+ print (" other error:" , e)
168188```
169189
170190##### Delete a tracking by ID.
176196 print (result)
177197except trackingmore.exception.TrackingMoreException as ce:
178198 print (ce)
199+ except Exception as e:
200+ print (" other error:" , e)
179201```
180202
181203##### Retrack expired tracking by ID.
187209 print (result)
188210except trackingmore.exception.TrackingMoreException as ce:
189211 print (ce)
212+ except Exception as e:
213+ print (" other error:" , e)
190214```
191215## Air Waybill
192216##### Create an air waybill.
198222 print (result)
199223except trackingmore.exception.TrackingMoreException as ce:
200224 print (ce)
225+ except Exception as e:
226+ print (" other error:" , e)
201227```
202228
203229## Response Code
0 commit comments