diff --git a/generator/towns_dumper.hpp b/generator/towns_dumper.hpp index 74c292c40b..61ec3d9991 100644 --- a/generator/towns_dumper.hpp +++ b/generator/towns_dumper.hpp @@ -27,14 +27,8 @@ public: string key(tag.key), value(tag.value); if (key == "population") { - try - { - strings::to_uint64(value, population); - } - catch (std::invalid_argument const &) - { + if (!strings::to_uint64(value, population)) continue; - } } else if (key == "capital" && value == "yes") {