Skip to content
Snippets Groups Projects
Verified Commit 19ace8dd authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed #494: CLI importer syntax error because of async reserved keyword usage

parent d8db3816
No related branches found
No related tags found
No related merge requests found
......@@ -216,8 +216,8 @@ class Command(BaseCommand):
message = "{i}/{total} Launching import for {path}..."
# we create an import batch binded to the user
async = options["async"]
import_handler = tasks.import_job_run.delay if async else tasks.import_job_run
async_ = options["async"]
import_handler = tasks.import_job_run.delay if async_ else tasks.import_job_run
batch = user.imports.create(source="shell")
errors = []
for i, path in list(enumerate(paths)):
......
Fixed CLI importer syntax error because of async reserved keyword usage (#494)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment