pdblp
pdblp copied to clipboard
Checking responseError
Handling the exception like below
pdblp.pdblp:INFO:Event Type: 'PARTIAL_RESPONSE'
pdblp.pdblp:INFO:Message Received:
ReferenceDataResponse = {
responseError = {
source = "bbdbd2"
code = -4001
category = "LIMIT"
message = "uuid: xxxxxxx, SN: xxxxx, sid: xxxxx Daily capacity reached. [nid:xxxx] "
subcategory = "DAILY_CAPACITY_REACHED"
}
}
For pull requests please include the following:
- [x] closes #74
- [ ] tests added / passed
- [x] passes
git diff upstream/master -u -- "*.py" | flake8 --diff
- [x] whatsnew entry
Notes:
To run the git diff
on the upstream/master
branch make sure this is set
up, e.g.
git remote add upstream [email protected]:matthewgilbert/pdblp.git
git fetch upstream
See here for more details.
Unfortunately automated testing using TravisCI is not possible since many tests
require a valid Bloomberg connection. Please verify that
pytest pdblp/tests -v
has been run and all tests are passing.
Commit
For most simple feature implementations please squash your commit to one entry and follow the style of https://chris.beams.io/posts/git-commit/ in your commit message, i.e.
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
@matthewgilbert I just started writing Python code in a few days ago and also new to Github workflow and I am not sure what is wrong with the Travis CI build failure. Can you quickly glance the error and see if there is anything I need to do?
@matthewgilbert It seems like Python 3.7 archive is not found according to the log. Can you see if you can fix it?
[33;1mDownloading archive: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/14.04/x86_64/python-3.7.tar.bz2[0m travis_time:start:13f0cc32 [0K$ curl -sSf --retry 5 -o python-3.7.tar.bz2 ${archive_url} curl: (22) The requested URL returned error: 404 Not Found travis_time:end:13f0cc32:start=1575224763792916890,finish=1575224763840117564,duration=47200674,event=configure [0KUnable to download 3.7 archive. The archive may not exist. Please consider a different version.
Another CI pipeline fails with the error below which I believe the master branch was failing already. This https://github.com/pytest-dev/pytest/issues/1688 seems to be related??
==================================== ERRORS ====================================
[31m[1m__________________ ERROR collecting pdblp/tests/test_pdblp.py __________________[0m
[1m[31mpdblp/tests/test_pdblp.py[0m:88: in