Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Solve test. Fix typo in msg

Maciej Korycinski742eb6c2f0cb
diff --git a/saleor/app/tasks.py b/saleor/app/tasks.py
index def1ae16d8..7ec19ca998 100644
--- a/saleor/app/tasks.py
+++ b/saleor/app/tasks.py
@@ -28,6 +28,6 @@ def install_app_task(job_id, activate=False):
)
except Exception as e:
logger.warning("Failed to install app. error %s", e)
- app_installation.message = f"Error {e}. Contact with app support."
+ app_installation.message = "Unknown error. Contact with app support."
app_installation.status = JobStatus.FAILED
app_installation.save()
diff --git a/saleor/app/tests/test_app_tasks.py b/saleor/app/tests/test_app_tasks.py
index 644da8a806..f41da99e02 100644
--- a/saleor/app/tests/test_app_tasks.py
+++ b/saleor/app/tests/test_app_tasks.py
@@ -72,4 +72,4 @@ def test_install_app_task_undefined_error(monkeypatch, app_installation):
install_app_task(app_installation.pk)
app_installation.refresh_from_db()
assert app_installation.status == JobStatus.FAILED
- assert app_installation.message == "Unknow error. Contact with app support."
+ assert app_installation.message == "Unknown error. Contact with app support."