summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index 6b3067db..de377f49 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -661,6 +661,10 @@ Cache::secret(const std::string &name) "Restoring secret '{}' failed: {}", name, job.errorString().toStdString()); return std::nullopt; } + if (secret.isEmpty()) { + nhlog::db()->debug("Restored empty secret '{}'.", name); + return std::nullopt; + } return secret.toStdString(); }