Skip to content

Commit

Permalink
update errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Sep 6, 2024
1 parent 1f35b56 commit 5551dc5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bio_compose/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,9 @@ def get_output(self, job_id: str, download_dest: str = None, filename: str = Non
self._output = data

return data
except Exception as e:
except:
import traceback
tb_str = traceback.format_exc()
error_message = (
f"An unexpected error occurred while processing your request:\n"
f"Error Type: {type(e).__name__}\n"
f"Error Details: {str(e)}\n"
f"Traceback:\n{tb_str}"
)

return RequestError(error=error_message)

def get_job_status(self, job_id: str):
Expand Down

0 comments on commit 5551dc5

Please sign in to comment.