forked from LiveCarta/BookConverter
Small folder changes
This commit is contained in:
@@ -20,7 +20,7 @@ def local_convert_book(book_type: [DocxBook, EpubBook], book_id: int, logger: lo
|
||||
try:
|
||||
json_file_path = "books/json/9781614382264.json"
|
||||
book = book_type(book_id=book_id, main_logger=logger, **params)
|
||||
book.conversion_local(json_file_path)
|
||||
book.conversion(json_file_path)
|
||||
except Exception as exc:
|
||||
raise exc
|
||||
logger.info(f"Book-{book_id} has been proceeded.")
|
||||
@@ -78,7 +78,7 @@ def server_run():
|
||||
try:
|
||||
folder_path = os.path.dirname(os.path.abspath(__file__))
|
||||
config_path = Path(os.path.join(
|
||||
folder_path, "config/queue_config.json"))
|
||||
folder_path, "configs/queue_config.json"))
|
||||
with open(config_path, "r") as f:
|
||||
conf_param = json.load(f)
|
||||
|
||||
@@ -95,7 +95,7 @@ def server_run():
|
||||
channel.queue_declare(queue=conf_param["queue"], durable=True, arguments={
|
||||
"x-max-priority": 10})
|
||||
except TypeError as exc:
|
||||
print("TypeError: problem with config, " + str(exc))
|
||||
print("TypeError: problem with queue config, " + str(exc))
|
||||
except ValueError as exc:
|
||||
logger_object.log(logging.ERROR,
|
||||
f"Queue {conf_param['queue']} is not declared.")
|
||||
|
||||
Reference in New Issue
Block a user