projects
/
doneit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15f62d3
)
Oops, messed up on the error message
author
Ed Page
<eopage@byu.net>
Sat, 25 Apr 2009 02:37:31 +0000
(21:37 -0500)
committer
Ed Page
<eopage@byu.net>
Sat, 25 Apr 2009 02:37:31 +0000
(21:37 -0500)
src/rtm_api.py
patch
|
blob
|
history
diff --git
a/src/rtm_api.py
b/src/rtm_api.py
index
720c0d2
..
c30b5b9
100644
(file)
--- a/
src/rtm_api.py
+++ b/
src/rtm_api.py
@@
-110,10
+110,11
@@
class RTMapi(object):
time.sleep(1)
chunk = connection.read()
json = "".join(chunks)
+
if "Content-Length" in connection.info():
assert len(json) == int(connection.info()["Content-Length"]), "The packet header promised %s of data but only was able to read %s of data" % (
- len(json),
connection.info()["Content-Length"],
+ len(json),
)
data = DottedDict('ROOT', parse_json(json))