Show More
@@ -346,10 +346,11 b' class GitRemote(object):' | |||
|
346 | 346 | try: |
|
347 | 347 | remote_refs = client.fetch( |
|
348 | 348 | path=url, target=repo, determine_wants=determine_wants) |
|
349 | except NotGitRepository: | |
|
349 | except NotGitRepository as e: | |
|
350 | 350 | log.warning( |
|
351 | 351 | 'Trying to fetch from "%s" failed, not a Git repository.', url) |
|
352 | raise exceptions.AbortException() | |
|
352 | # Exception can contain unicode which we convert | |
|
353 | raise exceptions.AbortException(repr(e)) | |
|
353 | 354 | |
|
354 | 355 | # mikhail: client.fetch() returns all the remote refs, but fetches only |
|
355 | 356 | # refs filtered by `determine_wants` function. We need to filter result |
@@ -607,9 +607,10 b' class HgRemote(object):' | |||
|
607 | 607 | date = (tag_time, tag_timezone) |
|
608 | 608 | try: |
|
609 | 609 | repo.tag(name, node, message, local, user, date) |
|
610 | except Abort: | |
|
610 | except Abort as e: | |
|
611 | 611 | log.exception("Tag operation aborted") |
|
612 | raise exceptions.AbortException() | |
|
612 | # Exception can contain unicode which we convert | |
|
613 | raise exceptions.AbortException(repr(e)) | |
|
613 | 614 | |
|
614 | 615 | @reraise_safe_exceptions |
|
615 | 616 | def tags(self, wire): |
General Comments 0
You need to be logged in to leave comments.
Login now