Skip to content

Commit d489d4b

Browse files
author
Dominick Leppich
committed
fix: missing error variable
1 parent 52c96c1 commit d489d4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

migration/lib/mets_manipulator.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def process_mets_file(self):
3333
try:
3434
tree = ET.parse(self.file_path)
3535
except Exception as e:
36-
logging.error(f'Error parsing mets file {self.file_path}, skipping')
36+
error = f'Error parsing mets file {self.file_path}, skipping'
37+
logging.error(error)
3738
self.ctx.log_issue(self.file_path, error)
3839
return
3940

0 commit comments

Comments
 (0)