disallow the special tag null, which can result if user escapes the prompt

This commit is contained in:
Andrej Karpathy 2021-11-30 22:51:16 -08:00
parent a01c637cc8
commit 9c00c8dacd

View File

@ -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: