Skip to content

Commit

Permalink
Merge branch 'feature/b-and-i-24-14' of https://github.com/CenterForO…
Browse files Browse the repository at this point in the history
…penScience/osf.io into debug/async-email-502
  • Loading branch information
Uditi Mehta committed Aug 29, 2024
2 parents d6e1394 + 6f4c7b8 commit e811358
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions framework/postcommit_tasks/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ def postcommit_after_request(response, base_status_error_code=500):
task()

except AttributeError as ex:
logger.error(f'Post commit task queue not initialized: {ex}')
except Exception as ex:
logger.error(f"Exception during postcommit processing: {ex}")
if not settings.DEBUG_MODE:
logger.error(f'Post commit task queue not initialized: {ex}')
return response

def get_task_from_postcommit_queue(name, predicate, celery=True):
Expand Down

0 comments on commit e811358

Please sign in to comment.