From c37b8b3b90ac4dce477133a92fc78e7e0f50dfe6 Mon Sep 17 00:00:00 2001 From: Nanda Scott Date: Sun, 28 Oct 2018 02:02:26 -0400 Subject: [PATCH] Formatting --- gen_docs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen_docs.py b/gen_docs.py index df65acf..4e8d45a 100644 --- a/gen_docs.py +++ b/gen_docs.py @@ -32,8 +32,8 @@ def format_returns(string, f): def format_raises(string, f): - if string == 'N/A': - f.write('\n## Raises\n\nN/A') + if 'N/A' in string: + f.write('\n## Raises\nN/A\n') return f.write('\n## Raises\n\n|exception type|reason|\n|:---:|:---:|\n')