mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
corrections based on the feedback
This commit is contained in:
parent
cde248f887
commit
287fe1dcbc
2 changed files with 10 additions and 6 deletions
Binary file not shown.
|
|
@ -21,12 +21,16 @@ def sync_pair(wq, pair_name, collections_to_sync, general, all_pairs,
|
||||||
a_name, b_name, pair_options = all_pairs[pair_name]
|
a_name, b_name, pair_options = all_pairs[pair_name]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
all_collections = dict(collections_for_pair(
|
config_a, config_b = all_storages[a_name], all_storages[b_name]
|
||||||
general['status_path'], a_name, b_name, pair_name,
|
except KeyError as e:
|
||||||
all_storages[a_name], all_storages[b_name], pair_options
|
raise CliError('Pair {}: Storage {} not found. These are the '
|
||||||
))
|
'configured storages: {}'
|
||||||
except KeyError:
|
.format(pair_name, str(e), list(all_storages)))
|
||||||
raise CliError('Could not find \"{}\" or \"{}\"\n'.format(a_name,b_name))
|
|
||||||
|
all_collections = dict(collections_for_pair(
|
||||||
|
general['status_path'], a_name, b_name, pair_name,
|
||||||
|
config_a, config_b, pair_options
|
||||||
|
))
|
||||||
|
|
||||||
# spawn one worker less because we can reuse the current one
|
# spawn one worker less because we can reuse the current one
|
||||||
new_workers = -1
|
new_workers = -1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue