Tidied up logging
This commit is contained in:
parent
0647acd47d
commit
06fb81ec4a
1 changed files with 1 additions and 3 deletions
|
|
@ -40,8 +40,6 @@ def build_captures_from_exif(capture_path):
|
||||||
capture = capture_from_path(f)
|
capture = capture_from_path(f)
|
||||||
if capture:
|
if capture:
|
||||||
captures[capture.id] = capture
|
captures[capture.id] = capture
|
||||||
else:
|
|
||||||
logging.error("Invalid data at {}. Skipping.".format(f))
|
|
||||||
|
|
||||||
logging.info("{} capture files successfully reloaded".format(len(captures)))
|
logging.info("{} capture files successfully reloaded".format(len(captures)))
|
||||||
|
|
||||||
|
|
@ -60,7 +58,7 @@ def capture_from_path(path):
|
||||||
capture.sync_basic_metadata()
|
capture.sync_basic_metadata()
|
||||||
return capture
|
return capture
|
||||||
except (InvalidImageDataError, json.decoder.JSONDecodeError):
|
except (InvalidImageDataError, json.decoder.JSONDecodeError):
|
||||||
logging.error("Invalid metadata at {}. Skipping.".format(path))
|
logging.error("Invalid metadata at {}.".format(path))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue