Handle exceptions in scanning loop.
This commit is contained in:
parent
7cbe517a70
commit
5af479fea8
@ -61,7 +61,11 @@ def scan_upstream_urls(cpv, urls, on_progress):
|
|||||||
|
|
||||||
# Try normal scan
|
# Try normal scan
|
||||||
if CONFIG["scan-dir"]:
|
if CONFIG["scan-dir"]:
|
||||||
versions.extend(handlers.scan(cpv, url))
|
try:
|
||||||
|
versions.extend(handlers.scan(cpv, url))
|
||||||
|
except Exception as e:
|
||||||
|
output.ewarn("Handler failed: [%s] %s"
|
||||||
|
% (e.__class__.__name__, e.message))
|
||||||
|
|
||||||
if versions and CONFIG['oneshot']:
|
if versions and CONFIG['oneshot']:
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user