Merge pull request #5965 from andersoncarlosfs/patch-1

Removing hard code entries
This commit is contained in:
Andrey Rakhmatullin 2023-07-05 12:51:06 +04:00 committed by GitHub
commit 8055a948dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ DATADIR_CFG_SECTION = "datadir"
def inside_project():
scrapy_module = os.environ.get("SCRAPY_SETTINGS_MODULE")
if scrapy_module is not None:
scrapy_module = os.environ.get(ENVVAR)
if scrapy_module:
try:
import_module(scrapy_module)
except ImportError as exc: