• Aaron Gable's avatar
    Revert "Refactor ReadHttpResponse to be error-friendlier" · 382674be
    Aaron Gable authored
    This reverts commit 6d7ab1bf.
    
    Reason for revert: Stacktrace:
     File "/s/depot_tools/gerrit_util.py", line 816, in GetAccountDetails
       return ReadHttpJsonResponse(conn)
     File "/s/depot_tools/gerrit_util.py", line 376, in ReadHttpJsonResponse
       fh = ReadHttpResponse(conn, accept_statuses)
     File "/s/depot_tools/gerrit_util.py", line 365, in ReadHttpResponse
       if response.status not in accept_statuses:
    TypeError: argument of type 'NoneType' is not iterable
    
    Original change's description:
    > Refactor ReadHttpResponse to be error-friendlier
    > 
    > Gerrit sometimes returns a full response json object at
    > the same time as returning a non-200 status code. This
    > refactor makes it easier for calling code to request
    > access to that object and handle error cases on its own.
    > 
    > Bug: 710028
    > Change-Id: Id1017d580d2fb843d5ca6287efcfed8775c52cd6
    > Reviewed-on: https://chromium-review.googlesource.com/479450
    > Commit-Queue: Aaron Gable <agable@chromium.org>
    > Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
    > 
    
    TBR=agable@chromium.org,tandrii@chromium.org,chromium-reviews@chromium.org
    NOPRESUBMIT=true
    NOTREECHECKS=true
    NOTRY=true
    
    Change-Id: Ia9d9ce835e207a32e7cc8ee35c0cf40c823c7b78
    Reviewed-on: https://chromium-review.googlesource.com/481059Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
    Commit-Queue: Aaron Gable <agable@chromium.org>
    382674be
Name
Last commit
Last update
..
gstools Loading commit data...
subversion_config Loading commit data...
abandon.sh Loading commit data...
basic.sh Loading commit data...
bot_update_coverage_test.py Loading commit data...
checkout_test.py Loading commit data...
download_from_google_storage_unittests.py Loading commit data...
fix_encoding_test.py Loading commit data...
gclient_scm_test.py Loading commit data...
gclient_smoketest.py Loading commit data...
gclient_test.py Loading commit data...
gclient_utils_test.py Loading commit data...
git_cache_test.py Loading commit data...
git_cl_creds_check_report.txt Loading commit data...
git_cl_test.py Loading commit data...
git_common_test.py Loading commit data...
git_dates_test.py Loading commit data...
git_drover_test.py Loading commit data...
git_footers_test.py Loading commit data...
git_hyper_blame_test.py Loading commit data...
git_number_test.py Loading commit data...
git_rebase_update_test.py Loading commit data...
gsutil_test.py Loading commit data...
hooks.sh Loading commit data...
owners.sh Loading commit data...
owners_finder_test.py Loading commit data...
owners_unittest.py Loading commit data...
patch.sh Loading commit data...
patch_test.py Loading commit data...
post-land-hook-test.sh Loading commit data...
presubmit_unittest.py Loading commit data...
push-from-logs.sh Loading commit data...
recipes_test.py Loading commit data...
rietveld_test.py Loading commit data...
sample_pre_commit_hook Loading commit data...
save-description-on-failure.sh Loading commit data...
scm_unittest.py Loading commit data...
submit-from-new-dir.sh Loading commit data...
subprocess2_test.py Loading commit data...
test-lib.sh Loading commit data...
upload-local-tracking-branch.sh Loading commit data...
upload-stale.sh Loading commit data...
upload_to_google_storage_unittests.py Loading commit data...
watchlists_unittest.py Loading commit data...