Commits

Matt Williams  committed 6034c9f

Make sure only the relevant warning is shown.

  • Participants
  • Parent commits 4746bc9

Comments (0)

Files changed (1)

File doxylink/sphinxcontrib/doxylink.py

 			#By here, no match was found
 			env = app.env
 			env.warn(env.docname, 'Could not find match for `%s` in `%s` tag file' % (part, tag_filename), lineno)
-		
-		
-		env = app.env
-		env.warn(env.docname, 'Could not find match for `%s` because tag file not found' % (part), lineno)
+		else:
+			env = app.env
+			env.warn(env.docname, 'Could not find match for `%s` because tag file not found' % (part), lineno)
 		
 		pnode = nodes.inline(rawsource=title, text=title)
 		return [pnode], []