Skip to content

Commit

Permalink
patternDB: Added missing append of patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Somerandomguy10111 committed Dec 13, 2024
1 parent a3c29eb commit f552407
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xrdpattern/pattern/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ def _add_data(self, info : XrdPatternData, fpath : str, strict : bool):
if not fpath in self.fpath_dict:
self.fpath_dict[fpath] = []
self.fpath_dict[fpath].append(p)
self.patterns.append(p)
except Exception as e:
self.failed_files.add(fpath)
patterdb_logger.warning(msg=f"Could not import pattern from file {fpath}:\n- Reason: \"{e}\"\n")
if strict:
raise e


# -------------------------------------------
# operations

Expand Down

0 comments on commit f552407

Please sign in to comment.