Skip to content

Commit

Permalink
Merge branch 'hotfix/clamav'
Browse files Browse the repository at this point in the history
  • Loading branch information
pmayer committed Aug 30, 2023
2 parents 1f7cc6c + 106b4cc commit abd91b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/media_server/clamav.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ def validate_file_infection(file):
# Ping the server if it fails than the server is down
scanner.ping()
# Server is up. This means that the file is too big.
logger.warning(f'The file is too large for ClamD to scan it. Bytes Read {file.tell()}')
logger.warning(f'ClamD: The file is too large for ClamD to scan it. Bytes Read {file.tell()}')
file.seek(0)
return
except clamd.BufferTooLongError as e:
logger.warning(f'ClamD: {str(e)}')
file.seek(0)
return

Expand Down

0 comments on commit abd91b3

Please sign in to comment.