We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3a528b commit a5bd148Copy full SHA for a5bd148
tools/tensorflow_docs/api_generator/parser.py
@@ -685,7 +685,7 @@ class FileLocation(object):
685
@property
686
def url(self) -> Optional[str]:
687
if self.start_line and self.end_line:
688
- if self.base_url.startswith('https://github.com/'):
+ if self.base_url and self.base_url.startswith('https://github.com/'):
689
return f'{self.base_url}#L{self.start_line}-L{self.end_line}'
690
return self.base_url
691
0 commit comments