diff roundup/cgi/actions.py @ 5999:8128ca0cb764

Remove useless assert assert is called on props, but we can only get to assert if props is true. bandit audit flagged the statement, so I removed it since it wasn't needed.
author John Rouillard <rouilj@ieee.org>
date Thu, 26 Dec 2019 19:51:07 -0500
parents 71c68961d9f4
children b011e5ac06d5
line wrap: on
line diff
--- a/roundup/cgi/actions.py	Wed Dec 25 21:07:58 2019 -0500
+++ b/roundup/cgi/actions.py	Thu Dec 26 19:51:07 2019 -0500
@@ -654,8 +654,6 @@
                         # a visible (non-quiet) property.
                         pass
                 else:
-                    assert props
-
                     # make a new node
                     newid = self._createnode(cn, props)
                     if nodeid is None:

Roundup Issue Tracker: http://roundup-tracker.org/