Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

make sure json_data is in scope

  • Loading branch information...
commit 37925a5cb4a8ea9559b64dc4403d8cb9e45a7f86 1 parent 39aff22
jeads jeads authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 datazilla/model/base.py
4 datazilla/model/base.py
@@ -404,7 +404,6 @@ def store_pushlogs(
404 404 "maxhours": hours,
405 405 }
406 406
407   -
408 407 for br in branch_list:
409 408 self.println(u"Branch: pushlogs for {0}".format(
410 409 unicode(br["name"])).encode("UTF-8"),
@@ -420,6 +419,8 @@ def store_pushlogs(
420 419 self.println("URL: {0}".format(url), 1)
421 420 # fetch the JSON content from the constructed URL.
422 421
  422 + json_data = ''
  423 +
423 424 try:
424 425 res = urllib.urlopen(url)
425 426 json_data = res.read()
@@ -429,7 +430,6 @@ def store_pushlogs(
429 430
430 431 try:
431 432 pushlog_dict = json.loads(json_data)
432   -
433 433 self._insert_branch_pushlogs(br["id"], pushlog_dict)
434 434 self.branch_count += 1
435 435

0 comments on commit 37925a5

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