Skip to content
Commit 2ff42f6b authored by Christoph Wurst's avatar Christoph Wurst Committed by backportbot[bot]
Browse files

Catch storage not available in versions expire command



External storage with session credentials is not accessible without a
user session, hence background jobs and CLI commands can't work with
them. The previously unhandled exception causes logged errors in the
nextcloud log. This patch catches the specific exception and logs it as
warnings. So for a production instance the error won't spam their logs
for this non-recoverable and technically unsolvable error if the minimum
log level is set to the default of 3 (error).

Signed-off-by: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>
parent 940e8c3a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment