dropped un unsed error assignment

This commit is contained in:
th3r00t
2022-11-14 00:05:34 -05:00
parent c8a80406e5
commit 47a07cdc25

6
src/backend/pyShelf_ScanLibrary.py vendored Executable file → Normal file
View File

@@ -16,8 +16,10 @@ def execute_scan(root, **kwargs):
:param root: Project root. Required to properly execute program. Sends to configuration.
"""
_t1 = time.time()
try: config = kwargs["config"];
except KeyError as e: config = Config(root) # Get configuration settings
try:
config = kwargs["config"]
except KeyError:
config = Config(root) # Get configuration settings
InitFiles(config.file_array) # Initialize file system
catalogue = Catalogue(config) # Open the Catalogue
catalogue.import_books()