From d1e77c78ee43d4ade0a3aebe3183eb132137c82b Mon Sep 17 00:00:00 2001 From: Carey Metcalfe Date: Mon, 25 Nov 2019 23:19:41 -0500 Subject: [PATCH] Use more appropriate exception class for unimplemented functionality --- feedgen/entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feedgen/entry.py b/feedgen/entry.py index ea86581..e90cbfd 100644 --- a/feedgen/entry.py +++ b/feedgen/entry.py @@ -49,7 +49,7 @@ def _add_text_elm(entry, data, name): data[name])) # Everything else should be included base64 encoded else: - raise ValueError( + raise NotImplementedError( 'base64 encoded {} is not supported at the moment. ' 'Pull requests adding support are welcome.'.format(name) )