aboutsummaryrefslogtreecommitdiff
path: root/app/func/newlink.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/func/newlink.py')
-rw-r--r--app/func/newlink.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/func/newlink.py b/app/func/newlink.py
index c726499..06776e6 100644
--- a/app/func/newlink.py
+++ b/app/func/newlink.py
@@ -13,7 +13,7 @@ Links are composed of 5 uppercase ASCII characters + numbers
"""
def generate_link(redirect_link, owner):
if not validators.url(redirect_link):
- return None
+ return 422
with engine.begin() as conn:
choices = string.ascii_uppercase + '1234567890'