Skip to content

Commit 55de297

Browse files
authored
Merge pull request #48 from UncoderIO/get_description_fix
get_description_str fix
2 parents eb4b6f8 + f02c28e commit 55de297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translator/app/translator/tools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_license_str(license_: str) -> str:
2929

3030

3131
def get_description_str(description: str) -> str:
32-
if not description.endswith("."):
32+
if description != "" and not description.endswith("."):
3333
description += "."
3434
return description
3535

0 commit comments

Comments
 (0)