cleanup and better error handling

This commit is contained in:
Thore Schillmann
2022-06-29 19:54:53 +00:00
parent 03359599ed
commit e39c6130c3
3 changed files with 11 additions and 9 deletions

View File

@@ -278,8 +278,7 @@ class _ConfigSQL(object):
if binary in constants.SUPPORTED_CALIBRE_BINARIES:
return os.path.join(binariesdir, binary)
else:
# TODO: Error handling
pass
raise ValueError("'{}' is not a supported Calibre binary".format(binary))
return ""
def set_from_dictionary(self, dictionary, field, convertor=None, default=None, encode=None):