Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KSKOP69 committed Oct 25, 2024
1 parent 4bbbba2 commit 78b521d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions AlexaMusic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
# Directories
dirr()

# Cookies
save_cookies()

# Check Git Updates
git()

Expand All @@ -34,6 +31,9 @@
# Heroku APP
heroku()

# Cookies
save_cookies()

# Bot Client
app = AlexaBot()

Expand Down
4 changes: 2 additions & 2 deletions AlexaMusic/core/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
from ..logging import LOGGER


def save_file(pastebin_url, file_path="AlexaMusic/platforms/cookies.txt"):
def save_file(pastebin_url, file_path='AlexaMusic/platforms/cookies.txt'):
try:
response = requests.get(pastebin_url)
response.raise_for_status()

os.makedirs(os.path.dirname(file_path), exist_ok=True)

with open(file_path, "w") as file:
with open(file_path, 'w') as file:
file.write(response.text)
return file_path

Expand Down

0 comments on commit 78b521d

Please sign in to comment.