Skip to content

Commit 2d6925f

Browse files
committed
Fixed an UnboundLocalError issue.
- Legacy-Id: 18167
1 parent a7b3d9c commit 2d6925f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ietf/doc/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ def get_absolute_url(self):
640640
"""
641641
if not hasattr(self, '_cached_absolute_url'):
642642
name = self.name
643+
url = None
643644
if self.type_id == "draft" and self.get_state_slug() == "rfc":
644645
name = self.canonical_name()
645646
url = urlreverse('ietf.doc.views_doc.document_main', kwargs={ 'name': name }, urlconf="ietf.urls")

0 commit comments

Comments
 (0)