There was an error while loading. Please reload this page.
1 parent 7925822 commit b7fba37Copy full SHA for b7fba37
1 file changed
ietf/doc/models.py
@@ -106,7 +106,8 @@ def get_file_path(self):
106
if self.get_state_slug() == "rfc":
107
self._cached_file_path = settings.RFC_PATH
108
else:
109
- if self.get_state('draft').slug == 'active':
+ draft_state = self.get_state('draft')
110
+ if draft_state and draft_state.slug == 'active':
111
self._cached_file_path = settings.INTERNET_DRAFT_PATH
112
113
self._cached_file_path = settings.INTERNET_ALL_DRAFTS_ARCHIVE_DIR
0 commit comments