Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
elibroftw committed Jul 14, 2019
1 parent e536a92 commit bcd53b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
start "" pyinstaller music_caster.spec
pyinstaller music_caster.spec
pyinstaller updater.spec
python after_build.py
"Installer Script.iss"
6 changes: 2 additions & 4 deletions music_caster.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
print('Importing modules')
from bs4 import BeautifulSoup
from contextlib import suppress
import ctypes
Expand All @@ -24,7 +23,6 @@
import threading
from time import time
import win32com.client
print('Imported modules succesfully!')


# TODO: set volume
Expand Down Expand Up @@ -76,14 +74,14 @@ def save_json():
json.dump(settings, outfile, indent=4)


# check if settings file is valid
try:
with open(settings_file) as json_file:
loaded_settings = json.load(json_file)
for k in settings.keys():
if k != 'DEBUG':
# check if settings file is valid
loaded_settings[k]

settings = loaded_settings
except (FileNotFoundError, KeyError):
save_json()

Expand Down

0 comments on commit bcd53b5

Please sign in to comment.