Show More
@@ -21,10 +21,12 b'' | |||
|
21 | 21 | """ |
|
22 | 22 | Custom vcs exceptions module. |
|
23 | 23 | """ |
|
24 | ||
|
24 | import logging | |
|
25 | 25 | import functools |
|
26 | 26 | import urllib2 |
|
27 | 27 | |
|
28 | log = logging.getLogger(__name__) | |
|
29 | ||
|
28 | 30 | |
|
29 | 31 | class VCSCommunicationError(Exception): |
|
30 | 32 | pass |
@@ -203,7 +205,10 b' def map_vcs_exceptions(func):' | |||
|
203 | 205 | args = e.args |
|
204 | 206 | else: |
|
205 | 207 | args = [__traceback_info__ or 'unhandledException'] |
|
206 | ||
|
208 | if __traceback_info__ and kind != 'unhandled': | |
|
209 | # for other than unhandled errors also log the traceback | |
|
210 | # can be usefull for debugging | |
|
211 | log.error(__traceback_info__) | |
|
207 | 212 | raise _EXCEPTION_MAP[kind](*args) |
|
208 | 213 | else: |
|
209 | 214 | raise |
General Comments 0
You need to be logged in to leave comments.
Login now