Skip to content

Commit

Permalink
Remove leftover debugging prints
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeon committed Oct 14, 2024
1 parent 8945be5 commit bf058fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ocfl/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
See: https://ocfl.io/1.1/spec/#root-hierarchies
"""
import json
import logging
import os
import os.path
from urllib.parse import quote_plus, unquote_plus
Expand Down Expand Up @@ -107,12 +108,11 @@ def read_layout_params(self, root_fs=None, params_required=False):
params_required but not present.
"""
config = None
print("Reading extension config file %s" % (self.config_file))
logging.debug("Reading extension config file %s", self.config_file)
if root_fs.exists(self.config_file):
try:
with root_fs.open(self.config_file) as fh:
config = json.load(fh)
print("#### " + str(config))
except Exception as e:
raise LayoutException("Storage root extension config file %s exists but can't be read/parsed (%s)" % (self.config_file, str(e)))
if not isinstance(config, dict):
Expand Down Expand Up @@ -155,6 +155,7 @@ def write_layout_params(self, root_fs=None):
if config is None:
# Nothing to write if there is no config defined
return
logging.debug("Writing extension config file %s", self.config_file)
if root_fs.exists(self.config_file):
raise LayoutException("Storage root extension layout config %s already exists" % (self.config_file))
try:
Expand Down

0 comments on commit bf058fe

Please sign in to comment.