mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
dropped un unsed error assignment
This commit is contained in:
6
src/backend/pyShelf_ScanLibrary.py
vendored
Executable file → Normal file
6
src/backend/pyShelf_ScanLibrary.py
vendored
Executable file → Normal file
@@ -16,8 +16,10 @@ def execute_scan(root, **kwargs):
|
|||||||
:param root: Project root. Required to properly execute program. Sends to configuration.
|
:param root: Project root. Required to properly execute program. Sends to configuration.
|
||||||
"""
|
"""
|
||||||
_t1 = time.time()
|
_t1 = time.time()
|
||||||
try: config = kwargs["config"];
|
try:
|
||||||
except KeyError as e: config = Config(root) # Get configuration settings
|
config = kwargs["config"]
|
||||||
|
except KeyError:
|
||||||
|
config = Config(root) # Get configuration settings
|
||||||
InitFiles(config.file_array) # Initialize file system
|
InitFiles(config.file_array) # Initialize file system
|
||||||
catalogue = Catalogue(config) # Open the Catalogue
|
catalogue = Catalogue(config) # Open the Catalogue
|
||||||
catalogue.import_books()
|
catalogue.import_books()
|
||||||
|
|||||||
Reference in New Issue
Block a user