diff options
author | emkael <emkael@tlen.pl> | 2015-10-27 15:26:55 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-10-27 16:54:51 +0100 |
commit | ad25964a1c9ca98fd7286329f3eb9f73eae3506a (patch) | |
tree | 0fa696340a099580851f3bf21ea4ab2a1b3d5d50 | |
parent | 4c6fe1a35b76e3009a2c96146ca271944ad4a8f8 (diff) |
* file delete sanitation
-rw-r--r-- | src/bidding_data.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bidding_data.py b/src/bidding_data.py index ca5e5cc..f7237ec 100644 --- a/src/bidding_data.py +++ b/src/bidding_data.py @@ -98,6 +98,7 @@ def get_last_bidder(bidding): class JFRBidding(object): + """Bidding data converter (from BWS data to JFR HTML pages).""" # alignment of the bidding table @@ -438,7 +439,11 @@ class JFRBidding(object): if unused not in used_bidding_tables]: log.getLogger('links').warning( 'bidding file %s not used, deleting', unused_file) - remove(unused_file) + if path.exists(unused_file): + remove(unused_file) + else: + log.getLogger('links').warning( + 'bidding file %s does not exist', unused_file) def main(): |