You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The validator appears to throw an exception when the submitted file is null - since a null / non-existing file is not an infected file, I would suggest wrapping the initial seek(0) with a try/except:
# Check if the file is not empty / exists
try:
file.seek(0)
except:
return
The text was updated successfully, but these errors were encountered:
- Use latest supported Python and Django versions and drop Python 2 support
- Remove some deprecation warnings
- Use GitHub Actions instead of TravisCI
- Support passing None to validate_file_infection (#18)
- Bump version to 1.0.0
- Use latest supported Python and Django versions and drop Python 2 support
- Remove some deprecation warnings
- Use GitHub Actions instead of TravisCI
- Support passing None to validate_file_infection (#18)
- Bump version to 1.0.0
The validator appears to throw an exception when the submitted file is null - since a null / non-existing file is not an infected file, I would suggest wrapping the initial seek(0) with a try/except:
The text was updated successfully, but these errors were encountered: