Mercurial > p > roundup > code
diff roundup/actions.py @ 7176:4c9acc580769
chore: flake8 whitespace fixes
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 26 Feb 2023 10:42:15 -0500 |
| parents | 48a1f919f894 |
| children | 1287b0c3d261 |
line wrap: on
line diff
--- a/roundup/actions.py Sun Feb 26 10:40:25 2023 -0500 +++ b/roundup/actions.py Sun Feb 26 10:42:15 2023 -0500 @@ -59,7 +59,8 @@ # make sure we don't try to retire admin or anonymous if (classname == 'user' and - self.db.user.get(itemid, 'username') in ('admin', 'anonymous')): + self.db.user.get(itemid, 'username') in ('admin', 'anonymous')): + raise ValueError(self._( 'You may not retire the admin or anonymous user'))
