bugfix
This commit is contained in:
@@ -36,6 +36,7 @@ from bs4 import BeautifulSoup
|
||||
import pandas as pd
|
||||
import openai
|
||||
from openai.error import AuthenticationError, OpenAIError, RateLimitError, APIError, Timeout, InvalidRequestError, ServiceUnavailableError
|
||||
from config import Config, BRANCH_MAPPING_FILE, URL_CHECK_MARKER, USER_AGENTS, LOG_DIR
|
||||
|
||||
# Optionale Bibliotheken
|
||||
try:
|
||||
@@ -170,7 +171,7 @@ def token_count(text, model=None):
|
||||
def create_log_filename(mode):
|
||||
"""Erstellt einen zeitgestempelten Logdateinamen im LOG_DIR."""
|
||||
logger = logging.getLogger(__name__)
|
||||
log_dir_path = Config.LOG_DIR
|
||||
log_dir_path = LOG_DIR
|
||||
if not os.path.exists(log_dir_path):
|
||||
try:
|
||||
os.makedirs(log_dir_path, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user