don't crash if btcpay key is invalid
This commit is contained in:
parent
e6cba96d2d
commit
ebf338eb12
@ -126,7 +126,12 @@ stripe.api_version = app.config['STRIPE_API_VERSION']
|
||||
|
||||
app.config['FLASK_MAIL_INSTANCE'] = Mail(app)
|
||||
app.config['HTTP_CLIENT'] = MyHTTPClient(timeout_seconds=int(app.config['INTERNAL_HTTP_TIMEOUT_SECONDS']))
|
||||
|
||||
try:
|
||||
app.config['BTCPAY_CLIENT'] = btcpay.Client(api_uri=app.config['BTCPAY_URL'], pem=app.config['BTCPAY_PRIVATE_KEY'])
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
if app.config['HUB_MODE_ENABLED']:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user