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

Commit4ed22b1

Browse files
author
Gauvain Pocentek
committed
on_http_error: properly wrap the function
This fixes the API docs.
1 parentd1e7cc7 commit4ed22b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎gitlab/exceptions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# You should have received a copy of the GNU Lesser General Public License
1616
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

18+
importfunctools
19+
1820

1921
classGitlabError(Exception):
2022
def__init__(self,error_message="",response_code=None,
@@ -223,6 +225,7 @@ def on_http_error(error):
223225
GitlabError
224226
"""
225227
defwrap(f):
228+
@functools.wraps(f)
226229
defwrapped_f(*args,**kwargs):
227230
try:
228231
returnf(*args,**kwargs)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp