remove obsolete AssertionError catching
@@ -242,7 +242,6 @@ def business_get_all(job_id: Optional[JobId], sync_all: Optional[bool]) -> Tuple
In typical scenario API client would want to get all records without sync and
then run sync each records individually.
"""
- try:
# Temporary solution with sync_all
sync_all = True
tasks = []
@@ -264,8 +263,6 @@ def business_get_all(job_id: Optional[JobId], sync_all: Optional[bool]) -> Tuple
synchronize(task.id)
results.append(task.as_dict())
return {'msg': TASK['all']['success'], 'tasks': results}, 200
- except AssertionError:
- return {'msg': GENERAL['unprivileged']}, 403
def business_create(task: Dict[str, Any], job_id: JobId) -> Tuple[Content, HttpStatusCode]:
