catch exception from scrapper
This commit is contained in:
parent
51d691f08c
commit
c177c22c7a
@ -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})
|
Loading…
Reference in New Issue
Block a user