Skip to content
Browse files

make sure json_data is in scope

  • Loading branch information...
1 parent 39aff22 commit 37925a5cb4a8ea9559b64dc4403d8cb9e45a7f86 @jeads jeads committed Feb 12, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 datazilla/model/base.py
View
4 datazilla/model/base.py
@@ -404,7 +404,6 @@ def store_pushlogs(
"maxhours": hours,
}
-
for br in branch_list:
self.println(u"Branch: pushlogs for {0}".format(
unicode(br["name"])).encode("UTF-8"),
@@ -420,6 +419,8 @@ def store_pushlogs(
self.println("URL: {0}".format(url), 1)
# fetch the JSON content from the constructed URL.
+ json_data = ''
+
try:
res = urllib.urlopen(url)
json_data = res.read()
@@ -429,7 +430,6 @@ def store_pushlogs(
try:
pushlog_dict = json.loads(json_data)
-
self._insert_branch_pushlogs(br["id"], pushlog_dict)
self.branch_count += 1

0 comments on commit 37925a5

Please sign in to comment.
Something went wrong with that request. Please try again.