-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Develop (#24) * Issue/7 (#16) * issue#7 now stores the time the token was created and re-uses it for 3:45 minutes before requesting a new one. updated the example file as the manifest info will always change. * issue#7 now stores the time the token was created and re-uses it for 3:45 minutes before requesting a new one. updated the example file as the manifest info will always change. * version bump 0.0.3 * Add service helpers (#19) * Issue/7 (#16) (#17) * issue#7 now stores the time the token was created and re-uses it for 3:45 minutes before requesting a new one. updated the example file as the manifest info will always change. * issue#7 now stores the time the token was created and re-uses it for 3:45 minutes before requesting a new one. updated the example file as the manifest info will always change. * version bump 0.0.3 * ready for 0.0.4 Better way of selecting service options by a friendly name Added in dictionaries of possible options and the relevant RM codes to send. all lowercase, spaces replaced with _ * adjust Exception types to be more logical * remove cli, not using add in if required later * fix version * Bump version: 0.0.3 → 0.0.4 * tox breaking * tox breaking * Tests (#23) * add in defaults of None to some of our service offerings start some tests * more tests add in some better exceptions to the delivery object builder * Bump version: 0.0.4 → 0.0.5 * fix makefile to build the distribution after the clean step in release otherwise it was just deleting everything it wanted to upload! * Create a RoyalMailError to raise when we get errors back from RM themselves. create an error handler to use instead of just raise_for_status so we get a true error back and return the JSON so the requesting application can deal with the exceptions gracefully.
- Loading branch information
1 parent
d924661
commit 3219656
Showing
4 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ class NotAuthorised(Exception): | |
|
||
class GeneralError(Exception): | ||
pass | ||
|
||
class RoyalMailError(Exception): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters