diff --git a/components/cluster/clustercomponent.cpp b/components/cluster/clustercomponent.cpp index f4229af1f..aa704c895 100644 --- a/components/cluster/clustercomponent.cpp +++ b/components/cluster/clustercomponent.cpp @@ -276,7 +276,15 @@ void ClusterComponent::CloseLogFile(void) void ClusterComponent::LogGlobHandler(std::vector& files, const String& file) { String name = Utility::BaseName(file); - int ts = Convert::ToLong(name); + + int ts; + + try { + ts = Convert::ToLong(name); + } catch (const std::exception&) { + return; + } + files.push_back(ts); }