From 8de3c34edae60719400f411e883811d8506f57a3 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Fri, 17 Feb 2023 11:38:02 +0100 Subject: [PATCH] project name defaults to slug --- pytransifex/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pytransifex/api.py b/pytransifex/api.py index aaba840..caab97a 100644 --- a/pytransifex/api.py +++ b/pytransifex/api.py @@ -58,6 +58,9 @@ def create_project( """Create a project.""" source_language = tx_api.Language.get(code=source_language_code) + if project_name is None: + project_name = project_slug + try: res = tx_api.Project.create( name=project_name,