mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1168979 part 1 - Add fallback for buildconfig in standalone use of upload_symbols script; r=mrrrgn
This commit is contained in:
parent
7256029b9e
commit
e21eb6cf4d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user