From 5a9fbfb2539638871865011dc95a0fa842291442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Fri, 19 Aug 2022 19:30:55 +0200 Subject: [PATCH] Don't fail on unknown link types. --- scripts/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate.py b/scripts/generate.py index e2f2e1b..3a6d2f0 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -138,7 +138,7 @@ def main(src_top, dest_top): elif l.value.startswith('./'): pass # TODO: Properly handle else: - raise NotImplementedError('On document {}, link to {}'.format(doc.path, l.value)) + logging.warning('On document {}, unknown link to {}'.format(doc.path, l.value)) if headline.parent: if isinstance(headline.parent, org_rw.Headline):