Title: Raise timeout exception if <4 bytes received by vslotman · Pull Request #32 · python-ivi/python-usbtmc · GitHub
Open Graph Title: Raise timeout exception if <4 bytes received by vslotman · Pull Request #32 · python-ivi/python-usbtmc
X Title: Raise timeout exception if <4 bytes received by vslotman · Pull Request #32 · python-ivi/python-usbtmc
Description: Sometimes timeouts are not handled nicely, resulting in the following stacktrace: print self.dev.ask('*IDN?') File "/usr/local/lib/python2.7/dist-packages/usbtmc/usbtmc.py", line 635, in ask return self.read(num, encoding) File "/usr/local/lib/python2.7/dist-packages/usbtmc/usbtmc.py", line 618, in read return self.read_raw(num).decode(encoding).rstrip('\r\n') File "/usr/local/lib/python2.7/dist-packages/usbtmc/usbtmc.py", line 547, in read_raw msgid, btag, btaginverse, transfer_size, transfer_attributes, data = self.unpack_dev_dep_resp_header(resp) File "/usr/local/lib/python2.7/dist-packages/usbtmc/usbtmc.py", line 468, in unpack_dev_dep_resp_header msgid, btag, btaginverse = self.unpack_bulk_in_header(data) File "/usr/local/lib/python2.7/dist-packages/usbtmc/usbtmc.py", line 464, in unpack_bulk_in_header msgid, btag, btaginverse = struct.unpack_from('BBBx', data) error: unpack_from requires a buffer of at least 4 bytes
Open Graph Description: Sometimes timeouts are not handled nicely, resulting in the following stacktrace: print self.dev.ask('*IDN?') File "/usr/local/lib/python2.7/dist-packages/usbtmc/usbtmc.py", line...
X Description: Sometimes timeouts are not handled nicely, resulting in the following stacktrace: print self.dev.ask('*IDN?') File "/usr/local/lib/python2.7/dist-packages/usbtmc/usbtmc.py...
Opengraph URL: https://github.com/python-ivi/python-usbtmc/pull/32
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:ef305c57-d0ce-600b-5f2e-c8b701dc1a0c |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9748:3890DD:2EC54F6:40BE912:6977B7F1 |
| html-safe-nonce | f22a27c017a71e02dbc6e29108b21edd9a934c9831e3d370517c33233d9f68a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzQ4OjM4OTBERDoyRUM1NEY2OjQwQkU5MTI6Njk3N0I3RjEiLCJ2aXNpdG9yX2lkIjoiNDgzNTU2NDUxNDgwNTUyODU2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4e17975f9ba5a731050e767d1e3fa330ebc32274144f3765efa298b514417cdf |
| hovercard-subject-tag | pull_request:112508751 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-ivi/python-usbtmc/pull/32/checks |
| twitter:image | https://avatars.githubusercontent.com/u/9658393?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9658393?s=400&v=4 |
| og:image:alt | Sometimes timeouts are not handled nicely, resulting in the following stacktrace: print self.dev.ask('*IDN?') File "/usr/local/lib/python2.7/dist-packages/usbtmc/usbtmc.py", line... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 831218810e1b66a41a0626c8c15f7f47625846d9a7516c7f43cfc2c61effad83 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-ivi/python-usbtmc git https://github.com/python-ivi/python-usbtmc.git |
| octolytics-dimension-user_id | 6889594 |
| octolytics-dimension-user_login | python-ivi |
| octolytics-dimension-repository_id | 10878556 |
| octolytics-dimension-repository_nwo | python-ivi/python-usbtmc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 10878556 |
| octolytics-dimension-repository_network_root_nwo | python-ivi/python-usbtmc |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b37ffa89d073c0d4a6f07ff42d59120741a74955 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width