Commit 9727b884 authored by Ahmed Awan's avatar Ahmed Awan
Browse files

remove else block and return `None` by the outer conditional

parent a6e70816
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -608,7 +608,6 @@ class UserManager(base.ModelManager, deletable.PurgableManagerMixin):
                except Exception as e:
                    log.debug(body)
                    return f"Failed to submit email. Please contact the administrator: {util.unicodify(e)}"
            else:
        return None

    def get_reset_token(self, trans, email):