Skip to content

Commit

Permalink
fix: linters
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoreira-valory committed Nov 14, 2024
1 parent fd64dd4 commit 4a4d501
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion operate/operate_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import os
import typing as t
from dataclasses import dataclass
from types import MethodType

from autonomy.chain.config import ChainType
from autonomy.chain.constants import CHAIN_NAME_TO_CHAIN_ID
Expand Down
10 changes: 5 additions & 5 deletions operate/services/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def _get_all_services(self) -> t.List[Service]:
raise e
except Exception as e: # pylint: disable=broad-except
self.logger.error(
f"Failed to load service: {path.name}. Exception: {traceback.format_exc()}"
f"Failed to load service: {path.name}. Exception {e}: {traceback.format_exc()}"
)
# rename the invalid path
# Rename the invalid path
timestamp = int(time.time())
invalid_path = path.parent / f"invalid_{timestamp}_{path.name}"
os.rename(path, invalid_path)
Expand Down Expand Up @@ -1597,11 +1597,11 @@ def migrate_service_configs(self) -> None:
migrated = Service.migrate_format(path)
if migrated:
self.logger.info(f"Folder {str(path)} has been migrated.")
except Exception: # pylint: disable=broad-except
except Exception as e: # pylint: disable=broad-except
self.logger.error(
f"Failed to migrate service: {path.name}. Exception: {traceback.format_exc()}"
f"Failed to migrate service: {path.name}. Exception {e}: {traceback.format_exc()}"
)
# rename the invalid path
# Rename the invalid path
timestamp = int(time.time())
invalid_path = path.parent / f"invalid_{timestamp}_{path.name}"
os.rename(path, invalid_path)
Expand Down

0 comments on commit 4a4d501

Please sign in to comment.