Fail when test file can't be read

This commit is contained in:
Unrud 2021-05-14 00:07:09 +02:00
parent 8f9734d797
commit 34bec01c9b

View File

@ -34,11 +34,8 @@ def get_file_path(file_name):
def get_file_content(file_name): def get_file_content(file_name):
try:
with open(get_file_path(file_name), encoding="utf-8") as fd: with open(get_file_path(file_name), encoding="utf-8") as fd:
return fd.read() return fd.read()
except IOError:
print("Couldn't open the file %s" % file_name)
def configuration_to_dict(configuration): def configuration_to_dict(configuration):