Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #96 from AFPy/fix-outside-git
Browse files Browse the repository at this point in the history
  • Loading branch information
Seluj78 authored Nov 26, 2020
2 parents 4c03daa + a3f96b9 commit d521886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion potodo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Jules Lasne"""
__email__ = "[email protected]"
__version__ = "0.18.0"
__version__ = "0.18.1"
7 changes: 3 additions & 4 deletions potodo/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d521886

Please sign in to comment.