Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

soft_deactivation: Remove unnecessary nocoverage lines.

Alex Vandiverd87c0b43f144
diff --git a/zerver/lib/soft_deactivation.py b/zerver/lib/soft_deactivation.py
index 8ce1fdd1c70..c407ed237c9 100644
--- a/zerver/lib/soft_deactivation.py
+++ b/zerver/lib/soft_deactivation.py
@@ -377,8 +377,8 @@ def do_catch_up_soft_deactivated_users(users: Iterable[UserProfile]) -> list[Use
except Exception: # nocoverage
logger.exception(
"Failed to catch up %d@%s", user_profile.id, user_profile.realm.string_id
- ) # nocoverage
- failures.append(user_profile) # nocoverage
+ )
+ failures.append(user_profile)
logger.info("Caught up %d soft-deactivated users", len(users_caught_up))
if failures:
logger.error("Failed to catch up %d soft-deactivated users", len(failures)) # nocoverage