Browse Source

Merge pull request #2687 from mano3m/develop_log_metadata

Log overwriting of metadata files
pull/2689/merge
Ruud Burger 11 years ago
parent
commit
aa5ecd7b42
  1. 3
      couchpotato/core/plugins/base.py

3
couchpotato/core/plugins/base.py

@ -97,6 +97,9 @@ class Plugin(object):
self.makeDir(os.path.dirname(path)) self.makeDir(os.path.dirname(path))
if os.path.exists(path):
log.info('%s already exists, overwriting file with new version', path)
try: try:
f = open(path, 'w+' if not binary else 'w+b') f = open(path, 'w+' if not binary else 'w+b')
f.write(content) f.write(content)

Loading…
Cancel
Save