Fix error

This commit is contained in:
Alexey Milovidov 2024-07-24 11:17:43 +02:00
parent 628ceae7c0
commit 57a6d28100

View File

@ -132,6 +132,14 @@ std::optional<size_t> ReadWriteBufferFromHTTP::tryGetFileSize()
{
return std::nullopt;
}
catch (const NetException &)
{
return std::nullopt;
}
catch (const Poco::Net::NetException &)
{
return std::nullopt;
}
}
return file_info->file_size;