Open this paste on another device
The QR code contains the clean paste URL. It contains no password or delete token.
diffRead-only
1
diff --git a/validator.py b/validator.py
index 5ef21ab..98a341c 100644
--- a/validator.py
+++ b/validator.py
@@ -8,5 +8,7 @@ def validate_name(value):
- if len(value) > 80:
+ value = value.strip()
+ if not value:
+ raise ValueError("name is required")
+ if len(value) > 80:
raise ValueError("name is too long")
return value
Paste details
- Visibility
- Public
- Size
- 356 bytes
- Protection
- Standard link access
- Retention
- No automatic expiry
Share with confidence
Unlisted links are not searchable, but anyone with the URL can open them. Never paste live credentials or personal data.