fix: Do not fail if SaneJS is not available

pull/27/head
Raphaël Vinot 2018-07-20 11:36:54 +02:00
parent 3c9b28b704
commit 2825096dc7
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ def sane_js_query(sha512, details=False):
if has_sane_js:
r = requests.post(SANE_JS, json={"sha512": sha512, 'details': details})
return r.json()
return {}
return {'exists': False}
@app.route('/scrape', methods=['GET', 'POST'])