Bug 1168979 part 1 - Add fallback for buildconfig in standalone use of upload_symbols script; r=mrrrgn

This commit is contained in:
Anthony Miyaguchi 2015-07-10 09:56:16 -07:00
parent 7256029b9e
commit e21eb6cf4d

View File

@ -19,9 +19,16 @@ import redo
import requests
import sys
try:
from buildconfig import substs
except ImportError:
# Allow standalone use of this script, for use in TaskCluster
from os import environ as substs
url = 'https://crash-stats.mozilla.com/symbols/upload'
# Allow overwriting of the upload url with an environmental variable
if 'SOCORRO_SYMBOL_UPLOAD_URL' in os.environ:
url = os.environ['SOCORRO_SYMBOL_UPLOAD_URL']
MAX_RETRIES = 5
def print_error(r):