Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
project name defaults to slug
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 17, 2023
1 parent 71e6c2a commit 8de3c34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytransifex/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8de3c34

Please sign in to comment.