Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiki-tempula committed Sep 2, 2022
1 parent be55f59 commit fd1662f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/alchemlyb/workflows/abfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,27 +113,27 @@ def read(self):
f'Reading {len(u_nk)} lines of u_nk from {file}')
u_nk_list.append(u_nk)
except Exception as exc:
msg = f'Error reading read u_nk from {file}.'
msg = f'Error reading read u_nk from {file}.\n{exc}'
if self.ignore_warnings:
self.logger.exception(msg + f'\n{exc}\n' +
self.logger.exception(msg +
'This exception is being ignored because ignore_warnings=True.')
else:
self.logger.error(msg)
raise ValueError(msg) from exc
self.logger.exception(msg)
raise type(exc)(msg)

try:
dhdl = self._extract_dHdl(file, T=self.T)
self.logger.info(
f'Reading {len(dhdl)} lines of dhdl from {file}')
dHdl_list.append(dhdl)
except Exception as exc:
msg = f'Error reading read dhdl from {file}.'
msg = f'Error reading read dhdl from {file}.\n{exc}'
if self.ignore_warnings:
self.logger.exception(msg + f'\n{exc}\n' +
self.logger.exception(msg +
'This exception is being ignored because ignore_warnings=True.')
else:
self.logger.error(msg)
raise ValueError(msg) from exc
self.logger.exception(msg)
raise type(exc)(msg)

# Sort the files according to the state
self.logger.info('Sort files according to the u_nk.')
Expand Down

0 comments on commit fd1662f

Please sign in to comment.