mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-04 19:24:51 +00:00
change env url
This commit is contained in:
parent
458a81aa34
commit
e335d36c5d
1 changed files with 4 additions and 4 deletions
|
|
@ -9,19 +9,19 @@ from git import Repo
|
||||||
|
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
CONFIG_FILE_URL = os.environ.get("CONFIG_FILE_URL")
|
ENV_URL = os.environ.get("ENV_URL")
|
||||||
try:
|
try:
|
||||||
if len(CONFIG_FILE_URL) == 0:
|
if len(ENV_URL) == 0:
|
||||||
raise TypeError
|
raise TypeError
|
||||||
try:
|
try:
|
||||||
res = requests.get(CONFIG_FILE_URL)
|
res = requests.get(ENV_URL)
|
||||||
if res.status_code == 200:
|
if res.status_code == 200:
|
||||||
with open("config.env", "wb+") as f:
|
with open("config.env", "wb+") as f:
|
||||||
f.write(res.content)
|
f.write(res.content)
|
||||||
else:
|
else:
|
||||||
LOGGER.error(f"config.env err: {res.status_code}")
|
LOGGER.error(f"config.env err: {res.status_code}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOGGER.error(f"CONFIG_FILE_URL: {e}")
|
LOGGER.error(f"ENV_URL: {e}")
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue