mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Final test
This commit is contained in:
@@ -168,8 +168,7 @@ music_file_list = []
|
||||
try:
|
||||
logger.info("Attempt to connect to file service")
|
||||
response = requests.get(f'{FILE_SERVICE_ADDRESS}{GET_MP3}',timeout=360)
|
||||
music_file_list = response.json()
|
||||
logger.info(music_file_list)
|
||||
music_file_list = response.json()["music_file_list"]
|
||||
except:
|
||||
for mp3_item in Path.glob(Path(MUSIC_FOLDER), "**/*.mp3"):
|
||||
temp_music_file = mp3_item.as_posix()
|
||||
@@ -177,10 +176,6 @@ except:
|
||||
temp_music_file = temp_music_file.replace("/", "\\")
|
||||
music_file_list.append(temp_music_file)
|
||||
logger.error("Service Unavailable")
|
||||
finally:
|
||||
sys.exit()
|
||||
|
||||
|
||||
|
||||
with open(SYSTEM_GPT_SETTINGS, "r+", encoding=ENCODING) as temp_settings_file:
|
||||
# First we load existing data into a dict.
|
||||
|
||||
Reference in New Issue
Block a user