TypeError when creating Lock.
Bug #827052 reported by
Stephen A. Goss
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flufl.lock |
Fix Released
|
Medium
|
Barry Warsaw |
Bug Description
I saw this message while running Mailman 3:
File "/home/
self.lock()
File "/home/
datetime.
TypeError: unsupported operand type(s) for +: 'int' and 'datetime.
This code failed since _releasetime is a property and can change between the first and second access here:
if (self._releasetime != -1 and
Changed in flufl.lock: | |
status: | Confirmed → Fix Committed |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Good catch! The fix is easy, but I want to see if I can think of a test.