Mercurial > p > roundup > code
diff roundup/backends/blobfiles.py @ 6002:3175bb92ca28
Cleanups for bandit
Set bandit to ignore use of md5.
Treat schema from database as trusted to eval. We wrote it based on
the schema.py file.
Replace some bare except: with a proper exception.
mode 775 for index directory is correct. Allows indices to be written
by email and web interfaces that run as different users but can have
the roundup group in common.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 26 Dec 2019 21:44:50 -0500 |
| parents | 6b0c542642be |
| children | 8497bf3f23a1 |
line wrap: on
line diff
--- a/roundup/backends/blobfiles.py Thu Dec 26 21:17:48 2019 -0500 +++ b/roundup/backends/blobfiles.py Thu Dec 26 21:44:50 2019 -0500 @@ -282,7 +282,7 @@ try: # Clean up, by performing the commit now. os.rename(tempfile, filename) - except: + except OSError: pass # If two Roundup clients both try to rename the file # at the same time, only one of them will succeed.
