Refactor a few more catch(...) instances

This commit is contained in:
Vojtech Kral 2019-08-26 17:17:23 +02:00
parent f9184f3564
commit 8b7f0c5359
3 changed files with 2 additions and 17 deletions

View file

@ -98,7 +98,7 @@ optional<unsigned long> sysfs_tty_prop_hex(const std::string &tty_dev, const std
if (!prop) { return boost::none; }
try { return std::stoul(*prop, 0, 16); }
catch (...) { return boost::none; }
catch (const std::exception&) { return boost::none; }
}
#endif