[~] Refactor
This commit is contained in:
parent
635336e248
commit
1eaac539ec
@ -13,6 +13,9 @@ with io.open(
|
|||||||
) as f:
|
) as f:
|
||||||
dynu_config = json.load(f)
|
dynu_config = json.load(f)
|
||||||
logging.warning('loaded dynu_config')
|
logging.warning('loaded dynu_config')
|
||||||
|
if dynu_config.get('enabled') != True:
|
||||||
|
logging.warning('disabled')
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
t2 = requests.get(
|
t2 = requests.get(
|
||||||
'https://api.dynu.com/v2/oauth2/token',
|
'https://api.dynu.com/v2/oauth2/token',
|
||||||
|
Loading…
Reference in New Issue
Block a user