Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielRF committed Oct 4, 2019
1 parent 8c26d81 commit a80c065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apitrackingmore.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def get_carriers(code):
})
try:
carriers.append(cursor['carrier'])
return(carriers)
except:
return carriers
except KeyError:
carriers = trackingmore.detect_carrier_from_code(code)
carriers.sort(key=lambda carrier: carrier['code'])
return carriers
Expand Down

0 comments on commit a80c065

Please sign in to comment.