Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit451561c

Browse files
committed
Added docs for the error module
1 parent2454ae8 commit451561c

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

‎lib/git/cmd.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ def execute(self, command,
102102
103103
str(output) # extended_output = False (Default)
104104
tuple(int(status), str(stdout), str(stderr)) # extended_output = True
105-
105+
106+
Raise
107+
GitCommandError
108+
106109
NOTE
107110
If you add additional keyword arguments to the signature of this method,
108111
you must update the execute_kwargs tuple housed in this module.

‎lib/git/errors.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,24 @@
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+
"""
7+
Module containing all exceptions thrown througout the git package,
8+
"""
69

710
classInvalidGitRepositoryError(Exception):
8-
pass
11+
"""
12+
Thrown if the given repository appears to have an invalid format.
13+
"""
914

1015
classNoSuchPathError(Exception):
11-
pass
16+
"""
17+
Thrown if a path could not be access by the system.
18+
"""
1219

1320
classGitCommandError(Exception):
21+
"""
22+
Thrown if execution of the git command fails with non-zero status code.
23+
"""
1424
def__init__(self,command,status,stderr=None):
1525
self.stderr=stderr
1626
self.status=status

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp