Skip to content

Commit a2fd3cc

Browse files
committed
refactor: move traceback import to top-level imports
1 parent f2bbf70 commit a2fd3cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pr_agent/git_providers/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import copy
22
import os
33
import tempfile
4+
import traceback
45

56
from dynaconf import Dynaconf
67
from starlette_context import context
@@ -43,7 +44,6 @@ def apply_repo_settings(pr_url):
4344
merge_enabled=False, # Don't allow merging from other sources
4445
)
4546
except TypeError as e:
46-
import traceback
4747
# Fallback for older Dynaconf versions that don't support these parameters
4848
get_logger().warning(
4949
"Your Dynaconf version does not support disabled 'load_dotenv'/'merge_enabled' parameters. "

0 commit comments

Comments
 (0)