@@ -73,7 +73,7 @@ def get_data():
73
73
data = response .data
74
74
return jsonify (data )
75
75
except Exception as e :
76
- return jsonify ({'error' : str (e )}), 500
76
+ return jsonify ({'error' : str (e )}), 200
77
77
78
78
79
79
@@ -99,7 +99,7 @@ def v1get_issues():
99
99
100
100
except Exception as e :
101
101
error_traceback = traceback .format_exc ()
102
- return jsonify ({'error' : str (e ), 'traceback' : error_traceback }), 500
102
+ return jsonify ({'error' : str (e ), 'traceback' : error_traceback }), 200
103
103
104
104
105
105
@app .route ('/issues' , methods = ['GET' ])
@@ -168,7 +168,7 @@ def get_issues():
168
168
169
169
except Exception as e :
170
170
error_traceback = traceback .format_exc ()
171
- return jsonify ({'error' : str (e ), 'traceback' : error_traceback }), 500
171
+ return jsonify ({'error' : str (e ), 'traceback' : error_traceback }), 200
172
172
173
173
@app .route ('/issues/<owner>' , methods = ['GET' ])
174
174
@cross_origin (supports_credentials = True )
@@ -201,13 +201,13 @@ def get_issues_by_owner(owner):
201
201
try :
202
202
response = SupabaseInterface ().get_instance ().client .table ('dmp_issue_updates' ).select ('*' ).eq ('owner' , owner ).order ('comment_updated_at' , desc = True ).execute ()
203
203
if not response .data :
204
- return jsonify ({'error' : "No data found" }), 500
204
+ return jsonify ({'error' : "No data found" }), 200
205
205
data = response .data [0 ]
206
206
return jsonify ({"name" : data ['org_name' ], "description" : data ['org_description' ]})
207
207
208
208
except Exception as e :
209
209
error_traceback = traceback .format_exc ()
210
- return jsonify ({'error' : str (e ), 'traceback' : error_traceback }), 500
210
+ return jsonify ({'error' : str (e ), 'traceback' : error_traceback }), 200
211
211
212
212
213
213
@@ -250,7 +250,7 @@ def get_issues_by_owner_id(owner, issue):
250
250
SUPABASE_DB = SupabaseInterface ().get_instance ()
251
251
response = SUPABASE_DB .client .table ('dmp_issue_updates' ).select ('*' ).eq ('owner' , owner ).eq ('issue_number' , issue ).execute ()
252
252
if not response .data :
253
- return jsonify ({'error' : "No data found" }), 500
253
+ return jsonify ({'error' : "No data found" }), 200
254
254
data = response .data
255
255
256
256
final_data = []
@@ -320,7 +320,7 @@ def get_issues_by_owner_id(owner, issue):
320
320
321
321
except Exception as e :
322
322
error_traceback = traceback .format_exc ()
323
- return jsonify ({'error' : str (e ), 'traceback' : error_traceback }), 500
323
+ return jsonify ({'error' : str (e ), 'traceback' : error_traceback }), 200
324
324
325
325
326
326
0 commit comments