diff options
author | cyfraeviolae <cyfraeviolae> | 2022-08-27 05:46:32 -0400 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2022-08-27 05:46:32 -0400 |
commit | 08cb6f00747ab7cf5c3b62cc1d71ea9512ee164f (patch) | |
tree | 58b35a9835cd2901eac09285556e106e3556d1c8 | |
parent | 36b27e733c83e02ac54d7a6c1aa0a43938d1fc1f (diff) |
print
-rw-r--r-- | app.py | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -134,7 +134,6 @@ def FileSizeLimit(max_bytes, magic_start=None, magic_end=None): return s = field.data.read() n = len(s) - print(max_bytes, n) if n > max_bytes: raise ValidationError(f"File size must be less than {max_bytes}B") if magic_start and not s.startswith(magic_start): |