diff --git a/django_napse/api/api_urls.py b/django_napse/api/api_urls.py index 77621e19..9fe64ca0 100644 --- a/django_napse/api/api_urls.py +++ b/django_napse/api/api_urls.py @@ -28,9 +28,7 @@ def build_main_router() -> DefaultRouter: for module_name in api_modules_folders_names: try: module: ModuleType = import_module(f"django_napse.api.{module_name}.views") - except (ImportError, ModuleNotFoundError) as error: - print(f"Could not import module {module_name} ({type(error)})") - print(error) + except (ImportError, ModuleNotFoundError): continue for obj in vars(module).values(): if isinstance(obj, type) and issubclass(obj, GenericViewSet): diff --git a/django_napse/api/bots/serializers/bot_serializers.py b/django_napse/api/bots/serializers/bot_serializers.py index c6eab33c..1c1dcef4 100644 --- a/django_napse/api/bots/serializers/bot_serializers.py +++ b/django_napse/api/bots/serializers/bot_serializers.py @@ -52,7 +52,6 @@ def get_space(self, instance: Bot) -> UUID | None: # noqa: ARG002 """Return the space used for the space containerization.""" if self.space is None: return None - print("UUID", type(self.space.uuid)) return self.space.uuid def get_exchange_account(self, instance: Bot) -> UUID | None: diff --git a/django_napse/api/fleets/serializers/fleet_serializers.py b/django_napse/api/fleets/serializers/fleet_serializers.py index e8e7d567..7fd8c790 100644 --- a/django_napse/api/fleets/serializers/fleet_serializers.py +++ b/django_napse/api/fleets/serializers/fleet_serializers.py @@ -153,7 +153,7 @@ def get_wallet(self, instance: Fleet) -> list[dict[str, float | str]] | None: def _search_ticker(ticker: str, merged_wallet: list[dict[str, str | float]]) -> int | None: """Return the index of the currency in the list if found, None otherwise.""" for i, currency in enumerate(merged_wallet): - if currency.get("ticker").ticker == ticker: + if currency.get("ticker") == ticker: return i return None