mirror of https://github.com/CIRCL/AIL-framework
commit
6bfe790056
|
@ -446,8 +446,8 @@ def api_create_crawler_task(user_id, url, screenshot=True, har=True, depth_limit
|
||||||
|
|
||||||
if auto_crawler:
|
if auto_crawler:
|
||||||
try:
|
try:
|
||||||
crawler_time = int(crawler_time)
|
crawler_delta = int(crawler_delta)
|
||||||
if crawler_time < 0:
|
if crawler_delta < 0:
|
||||||
return ({'error':'invalid delta bettween two pass of the crawler'}, 400)
|
return ({'error':'invalid delta bettween two pass of the crawler'}, 400)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return ({'error':'invalid delta bettween two pass of the crawler'}, 400)
|
return ({'error':'invalid delta bettween two pass of the crawler'}, 400)
|
||||||
|
|
Loading…
Reference in New Issue