From 0950d056ab174f6c49910b303f902f8a2da15eae Mon Sep 17 00:00:00 2001 From: Jules Lasne Date: Sun, 25 Oct 2020 12:19:17 +0100 Subject: [PATCH 1/2] Fixed error when potodo is ran outside of git repositoory --- potodo/github.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/potodo/github.py b/potodo/github.py index 2ab7142..be263f9 100644 --- a/potodo/github.py +++ b/potodo/github.py @@ -28,10 +28,9 @@ def get_repo_url(repo_path: Path) -> str: cwd=str(repo_path), stderr=subprocess.STDOUT, ) - except subprocess.CalledProcessError as e: - raise RuntimeError( - f'Unknown error. `{" ".join(e.cmd)}` returned "{e.output.rstrip()}".' - ) + except subprocess.CalledProcessError: + print("potodo needs to be ran in a git repository, or use the `-p` `--path` argument.") + exit(1) logging.debug("Found repo url %s from %s", url, repo_path) return url From a3f96b93caa7d60c0e5a014252fce4105ec2c7de Mon Sep 17 00:00:00 2001 From: Jules Lasne Date: Thu, 26 Nov 2020 13:25:23 +0100 Subject: [PATCH 2/2] Version bump --- potodo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/potodo/__init__.py b/potodo/__init__.py index f532b28..04c7c35 100644 --- a/potodo/__init__.py +++ b/potodo/__init__.py @@ -2,4 +2,4 @@ __author__ = """Jules Lasne""" __email__ = "jules.lasne@gmail.com" -__version__ = "0.18.0" +__version__ = "0.18.1"