Skip to content

Commit ced36b1

Browse files
authored
Apply suggestion from @fsbraun
1 parent 965effe commit ced36b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangocms_alias/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def get_name(self, language=None):
168168
if version.state == DRAFT:
169169
return f"{name} (Not published)"
170170
except (ImportError, ModuleNotFoundError, AttributeError):
171-
pass
171+
return name # djangocms versioning unreachable for draft check - just return the name
172172
return name
173173

174174
def get_content(self, language=None, show_draft_content=False):

0 commit comments

Comments
 (0)