catch exception from scrapper

This commit is contained in:
Maciej Ścigacz 2023-05-31 18:13:34 +02:00
parent 51d691f08c
commit c177c22c7a

View File

@ -28,9 +28,5 @@ def scrapp():
result = scrapp_comments(url['link'])
result['status'] = True
return result
except:
return jsonify({'status':False})
@sentiment_service.route("/hello", methods=['GET'])
def elo():
return "helo world"
except Exception as err:
return jsonify({'status':False, 'error':err})