From 9c00c8dacd3ec627d3d7675ac78acf118fd869ab Mon Sep 17 00:00:00 2001 From: Andrej Karpathy Date: Tue, 30 Nov 2021 22:51:16 -0800 Subject: [PATCH] disallow the special tag null, which can result if user escapes the prompt --- serve.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serve.py b/serve.py index 48139bc..16b3d97 100644 --- a/serve.py +++ b/serve.py @@ -335,6 +335,8 @@ def add(pid=None, tag=None): return "error, not logged in" if tag == 'all': return "error, cannot add the protected tag 'all'" + elif tag == 'null': + return "error, cannot add the protected tag 'null'" with get_tags_db(flag='c') as tags_db: