Return default max chars on exception in get_max_chars().

This commit is contained in:
tastytea 2020-01-11 23:04:40 +01:00
parent 1a99e8a276
commit fd5275f4a3
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ uint64_t Instance::get_max_chars()
catch (const exception &e)
{
debuglog << "Unexpected exception: " << e.what() << '\n';
return default_max_chars;
}
}