mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 06:20:08 +01:00
Don't fail when ENABLE_BACKTRACE=1 but backtrace is not available.
This commit is contained in:
parent
74951b72fa
commit
1b8c325d83
1 changed files with 5 additions and 2 deletions
|
|
@ -28,9 +28,12 @@ _VERBOSE = 0
|
|||
# To enable pretty tracebacks:
|
||||
# echo "export ENABLE_BACKTRACE=1;" >> ~/.bashrc
|
||||
if os.environ.get('ENABLE_BACKTRACE') == '1':
|
||||
import backtrace
|
||||
try
|
||||
import backtrace
|
||||
|
||||
backtrace.hook(align=True, strip_path=True, enable_on_envvar_only=True)
|
||||
backtrace.hook(align=True, strip_path=True, enable_on_envvar_only=True)
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
click.disable_unicode_literals_warning = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue