[cli][domain] continue -> return
This commit is contained in:
parent
976ba9b808
commit
51c319de20
|
@ -197,7 +197,7 @@ def update_db():
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Domain is not available in current PYTHONPATH
|
# Domain is not available in current PYTHONPATH
|
||||||
click.echo(f"Can't import *{domain}*", err=True)
|
click.echo(f"Can't import *{domain}*", err=True)
|
||||||
continue
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
add_domain(domain)
|
add_domain(domain)
|
||||||
|
@ -206,7 +206,7 @@ def update_db():
|
||||||
# @TODO : Insertion exception handling
|
# @TODO : Insertion exception handling
|
||||||
click.echo(e)
|
click.echo(e)
|
||||||
click.echo(f"Could not insert *{domain}*", err=True)
|
click.echo(f"Could not insert *{domain}*", err=True)
|
||||||
continue
|
return False
|
||||||
|
|
||||||
# add sub routers
|
# add sub routers
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue