Skip to content

Commit 908aacc

Browse files
committed
Handle the case in is_downref() where the src file doesn't have a std_level or intended_std_level set.
- Legacy-Id: 7198
1 parent 04d9405 commit 908aacc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/doc/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,10 @@ def is_downref(self):
176176

177177
if self.source.get_state().slug == 'rfc':
178178
source_lvl = self.source.std_level.slug
179-
else:
179+
elif self.source.intended_std_level:
180180
source_lvl = self.source.intended_std_level.slug
181+
else:
182+
source_lvl = None
181183

182184
if source_lvl not in ['bcp','ps','ds','std']:
183185
return None

0 commit comments

Comments
 (0)