Show More
@@ -11,7 +11,7 b' try:' | |||||
11 | except ImportError: |
|
11 | except ImportError: | |
12 | if os.environ.get('RC_DEBUG_GIT_HOOK'): |
|
12 | if os.environ.get('RC_DEBUG_GIT_HOOK'): | |
13 | import traceback |
|
13 | import traceback | |
14 |
print |
|
14 | print(traceback.format_exc()) | |
15 | hooks = None |
|
15 | hooks = None | |
16 |
|
16 | |||
17 |
|
17 | |||
@@ -42,7 +42,7 b' def main():' | |||||
42 | # TODO: johbo: Improve handling of this special case |
|
42 | # TODO: johbo: Improve handling of this special case | |
43 | if not getattr(error, '_vcs_kind', None) == 'repo_locked': |
|
43 | if not getattr(error, '_vcs_kind', None) == 'repo_locked': | |
44 | raise |
|
44 | raise | |
45 |
print |
|
45 | print(f'ERROR: {error}') | |
46 | sys.exit(1) |
|
46 | sys.exit(1) | |
47 | sys.exit(0) |
|
47 | sys.exit(0) | |
48 |
|
48 |
@@ -11,7 +11,7 b' try:' | |||||
11 | except ImportError: |
|
11 | except ImportError: | |
12 | if os.environ.get('RC_DEBUG_GIT_HOOK'): |
|
12 | if os.environ.get('RC_DEBUG_GIT_HOOK'): | |
13 | import traceback |
|
13 | import traceback | |
14 |
print |
|
14 | print(traceback.format_exc()) | |
15 | hooks = None |
|
15 | hooks = None | |
16 |
|
16 | |||
17 |
|
17 | |||
@@ -42,7 +42,7 b' def main():' | |||||
42 | # TODO: johbo: Improve handling of this special case |
|
42 | # TODO: johbo: Improve handling of this special case | |
43 | if not getattr(error, '_vcs_kind', None) == 'repo_locked': |
|
43 | if not getattr(error, '_vcs_kind', None) == 'repo_locked': | |
44 | raise |
|
44 | raise | |
45 |
print |
|
45 | print(f'ERROR: {error}') | |
46 | sys.exit(1) |
|
46 | sys.exit(1) | |
47 | sys.exit(0) |
|
47 | sys.exit(0) | |
48 |
|
48 |
@@ -12,7 +12,7 b' try:' | |||||
12 | except ImportError: |
|
12 | except ImportError: | |
13 | if os.environ.get('RC_DEBUG_SVN_HOOK'): |
|
13 | if os.environ.get('RC_DEBUG_SVN_HOOK'): | |
14 | import traceback |
|
14 | import traceback | |
15 |
print |
|
15 | print(traceback.format_exc()) | |
16 | hooks = None |
|
16 | hooks = None | |
17 |
|
17 | |||
18 |
|
18 | |||
@@ -40,7 +40,7 b' def main():' | |||||
40 | # TODO: johbo: Improve handling of this special case |
|
40 | # TODO: johbo: Improve handling of this special case | |
41 | if not getattr(error, '_vcs_kind', None) == 'repo_locked': |
|
41 | if not getattr(error, '_vcs_kind', None) == 'repo_locked': | |
42 | raise |
|
42 | raise | |
43 |
print |
|
43 | print(f'ERROR: {error}') | |
44 | sys.exit(1) |
|
44 | sys.exit(1) | |
45 | sys.exit(0) |
|
45 | sys.exit(0) | |
46 |
|
46 |
@@ -12,7 +12,7 b' try:' | |||||
12 | except ImportError: |
|
12 | except ImportError: | |
13 | if os.environ.get('RC_DEBUG_SVN_HOOK'): |
|
13 | if os.environ.get('RC_DEBUG_SVN_HOOK'): | |
14 | import traceback |
|
14 | import traceback | |
15 |
print |
|
15 | print(traceback.format_exc()) | |
16 | hooks = None |
|
16 | hooks = None | |
17 |
|
17 | |||
18 |
|
18 | |||
@@ -43,7 +43,7 b' def main():' | |||||
43 | # TODO: johbo: Improve handling of this special case |
|
43 | # TODO: johbo: Improve handling of this special case | |
44 | if not getattr(error, '_vcs_kind', None) == 'repo_locked': |
|
44 | if not getattr(error, '_vcs_kind', None) == 'repo_locked': | |
45 | raise |
|
45 | raise | |
46 |
print |
|
46 | print(f'ERROR: {error}') | |
47 | sys.exit(1) |
|
47 | sys.exit(1) | |
48 | sys.exit(0) |
|
48 | sys.exit(0) | |
49 |
|
49 |
General Comments 0
You need to be logged in to leave comments.
Login now