Permalink
Browse files

Checking for a narrower range of good responses from dpaste.com

  • Loading branch information...
1 parent 94e3ece commit e858166dba7f973f14bf340c759884e7373473f4 @migurski committed Feb 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 run-instance.py
View
@@ -42,7 +42,7 @@ def post_script(filename):
resp = conn.getresponse()
- if resp.status >= 400:
+ if resp.status not in range(300, 399):
print resp.getheaders()
raise Exception('Received status %d from dpaste.com' % resp.status)

0 comments on commit e858166

Please sign in to comment.