Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1057)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/net/network_transaction.py

Issue 2580293002: Style change: Rename error variables "e" -> "error" (Closed)
Patch Set: Rebase and fix formatter unittest. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/net/network_transaction.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/network_transaction.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/network_transaction.py
index 5924e48186b32612db2e53f42359b0ad2b16f225..7198e02d58613be6e9e0614e422b05f1d0982208 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/network_transaction.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/network_transaction.py
@@ -58,12 +58,12 @@ class NetworkTransaction(object):
while True:
try:
return request()
- except urllib2.HTTPError as e:
- if self._convert_404_to_None and e.code == 404:
+ except urllib2.HTTPError as error:
+ if self._convert_404_to_None and error.code == 404:
return None
self._check_for_timeout()
_log.warning("Received HTTP status %s loading \"%s\". Retrying in %s seconds...",
- e.code, e.filename, self._backoff_seconds)
+ error.code, error.filename, self._backoff_seconds)
self._sleep()
def _check_for_timeout(self):

Powered by Google App Engine
This is Rietveld 408576698