Skip to content

Commit 49403b5

Browse files
committed
stay with config identifiers
1 parent 99c5017 commit 49403b5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ __pycache__
1313
# Poetry
1414
poetry.toml
1515

16+
# Other Python tools
17+
.ropeproject
18+
1619
# Mise
1720
mise.toml
1821
.mise.toml

src/crawlee/configuration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ def get_global_configuration(cls) -> Self:
239239
"""
240240
from crawlee.service_container import get_configuration
241241

242-
cfg = get_configuration()
242+
config = get_configuration()
243243

244-
if not isinstance(cfg, cls):
245-
raise TypeError(f'Requested global configuration object of type {cls}, but {cfg.__class__} was found')
244+
if not isinstance(config, cls):
245+
raise TypeError(f'Requested global configuration object of type {cls}, but {config.__class__} was found')
246246

247-
return cfg
247+
return config

0 commit comments

Comments
 (0)