Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 31, 2025
1 parent ca17924 commit 701e658
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 3 additions & 5 deletions src/aiida/manage/configuration/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
from __future__ import annotations

import codecs
import contextlib
import io
import json
import os
import uuid
Expand Down Expand Up @@ -528,13 +526,13 @@ def create_profile(
LOGGER.report('Initialising the storage backend.')
profile.storage_cls.initialise(profile)
try:
#with contextlib.redirect_stdout(io.StringIO()):
#profile.storage_cls.initialise(profile)
# with contextlib.redirect_stdout(io.StringIO()):
# profile.storage_cls.initialise(profile)
pass
except Exception as exception:
raise StorageMigrationError(
f'Storage backend initialisation failed, probably because the configuration is incorrect:\n{exception}'
) from exception
) from exception
LOGGER.report('Storage initialisation completed.')

self.add_profile(profile)
Expand Down
4 changes: 1 addition & 3 deletions src/aiida/storage/psql_dos/migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ def get_repository_uuid(self) -> str:
except Exception as exception:
# PR COMMENT removed the printing of exception in message since we use from exception
if container is None:
msg = (
'During creation of the container context for the disk-objectstore the following error was raised'
)
msg = 'During creation of the container context for the disk-objectstore the following error was raised'
else:
msg = f'During access of disk-objectstore {container} error was raised.'

Expand Down

0 comments on commit 701e658

Please sign in to comment.