Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nsyed22 committed Dec 12, 2024
1 parent 8c3fc90 commit 5826ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybossa/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ def export_tasks(current_user_email_addr, short_name,
max_email_size = current_app.config.get('EXPORT_MAX_EMAIL_SIZE', float('Inf'))
max_s3_upload_size = current_app.config.get('EXPORT_MAX_UPLOAD_SIZE', float('Inf'))

if len(content) > max_s3_upload_size:
if len(content) > max_s3_upload_size and bucket_name:
current_app.logger.info("Task export project id %s: Task export exceeded max size %d, actual size: %d",
project.id, max_s3_upload_size, len(content))
mail_dict['subject'] = 'Data export exceeded max file size: {0}'.format(project.name)
Expand Down

0 comments on commit 5826ed4

Please sign in to comment.