mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
refactor: move traceback import to top-level imports
This commit is contained in:
parent
f2bbf708f2
commit
a2fd3cc190
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import copy
|
import copy
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
import traceback
|
||||||
|
|
||||||
from dynaconf import Dynaconf
|
from dynaconf import Dynaconf
|
||||||
from starlette_context import context
|
from starlette_context import context
|
||||||
|
|
@ -43,7 +44,6 @@ def apply_repo_settings(pr_url):
|
||||||
merge_enabled=False, # Don't allow merging from other sources
|
merge_enabled=False, # Don't allow merging from other sources
|
||||||
)
|
)
|
||||||
except TypeError as e:
|
except TypeError as e:
|
||||||
import traceback
|
|
||||||
# Fallback for older Dynaconf versions that don't support these parameters
|
# Fallback for older Dynaconf versions that don't support these parameters
|
||||||
get_logger().warning(
|
get_logger().warning(
|
||||||
"Your Dynaconf version does not support disabled 'load_dotenv'/'merge_enabled' parameters. "
|
"Your Dynaconf version does not support disabled 'load_dotenv'/'merge_enabled' parameters. "
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue