Don't throw error if watchwords.json does not exist.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2020-01-03 03:26:00 +01:00
parent 20798f5f5c
commit e7e222f035
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 2 deletions

View File

@ -279,8 +279,9 @@ void Document::parse_watchwords()
}
else
{
throw FileException{"File Not found:"
+ (_cfg.get_config_dir() /= "watchwords.json").string()};
BOOST_LOG_TRIVIAL(warning) << "File Not found: " <<
(_cfg.get_config_dir() /= "watchwords.json").string();
return;
}
const auto &tags_profile = json[_cfg.profile]["tags"];