Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/rm invalid services #245

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion electron/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { paths } = require('./constants');
* - use "" (nothing as a suffix) for latest release candidate, for example "0.1.0rc26"
* - use "alpha" for alpha release, for example "0.1.0rc26-alpha"
*/
const OlasMiddlewareVersion = '0.1.0rc71';
const OlasMiddlewareVersion = '0.1.0rc86';

const Env = {
...process.env,
Expand Down
12 changes: 10 additions & 2 deletions operate/services/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,16 @@ def json(self) -> t.List[t.Dict]:
continue
if not path.name.startswith("bafybei"):
continue
service = Service.load(path=path)
data.append(service.json)
try:
service = Service.load(path=path)
data.append(service.json)
except Exception as e: # pylint: disable=broad-except
self.logger.warning(
f"Failed to load service: {path.name}. Exception: {e}"
)
# delete the invalid path
shutil.rmtree(path)
self.logger.info(f"Deleted invalid service: {path.name}")
return data

def exists(self, service: str) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
"start:frontend": "cd frontend && yarn start",
"test:frontend": "cd frontend && yarn test"
},
"version": "0.1.0-rc71"
"version": "0.1.0-rc86"
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "olas-operate-middleware"
version = "0.1.0-rc71"
version = "0.1.0-rc86"
description = ""
authors = ["David Vilela <[email protected]>", "Viraj Patel <[email protected]>"]
readme = "README.md"
Expand Down
Loading