use retry on urlopen (third try)
authorSylvestre Ledru <sledru@mozilla.com>
Thu, 04 Dec 2014 17:52:03 -0800
changeset 5244 c4e2a65d7dcbd13265770a03c2838e16251afd16
parent 5243 82e0bf9ea9e9856961a49e5e13a2538ea463289e
child 5245 96f00554eaf43a20e3c431a3f8f89569e5b8778e
push id8
push usersledru@mozilla.com
push dateFri, 05 Dec 2014 01:52:09 +0000
use retry on urlopen (third try)
buildbot-helpers/release_sanity.py
--- a/buildbot-helpers/release_sanity.py
+++ b/buildbot-helpers/release_sanity.py
@@ -141,17 +141,17 @@ def verify_l10n_changesets(hgHost, l10n_
             'repoPath': releaseConfig['l10nRepoPath'].strip('/'),
             'locale': locale,
             'revision': revision,
         }
         locale_url = make_hg_url(hgHost, localePath, protocol='https')
         log.info("Checking for existence l10n changeset %s %s in repo %s ..."
                  % (locale, revision, locale_url))
 
-        success = retry(get_l10n_changesets, args=(locale_url), attempts=3, sleeptime=1)
+        success = retry(get_l10n_changesets, kwargs=dict(locale_url=locale_url), attempts=3, sleeptime=1)
     return success
 
 
 def verify_l10n_dashboard(l10n_changesets, l10n_dashboard_version=None):
     """Checks the l10n-changesets against the l10n dashboard"""
     success = True
     locales = query_locale_revisions(l10n_changesets)
     if l10n_dashboard_version: