Merge pull request 'bugfix: agrego informacion de traceback para errores de GitFlow' (#22) from bugfix/add-debug-error-info into main
Publish to PyPI / Publish-to-PyPI (push) Successful in 38s

Reviewed-on: #22
This commit was merged in pull request #22.
This commit is contained in:
jt
2026-09-18 13:26:51 +00:00
+8 -6
View File
@@ -1,10 +1,12 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import traceback
from subprocess import SubprocessError
import typer import typer
from git_flow import GitFlowError from git_flow import GitFlowError
import git_flow.command.base as base from git_flow.command import base, branch, commit, init, merge, new, release, tag
from git_flow.command import init, new, commit, merge, tag, release, branch
REPOSITORY_TOKEN_PATH = ".repository-token" REPOSITORY_TOKEN_PATH = ".repository-token"
LOCALE = "es_AR.UTF-8" LOCALE = "es_AR.UTF-8"
@@ -25,8 +27,8 @@ def main():
app() app()
print() print()
except GitFlowError as e: except GitFlowError as e:
base.io_error(str(e), title="Git Flow") base.io_error("".join(traceback.format_exception(e)), title="Git Flow: " + str(e))
except Exception as e: except SubprocessError as e:
base.io_error(str(e), title="Inesperado") base.io_error(str(e), title="Comando")
except KeyboardInterrupt as e: except KeyboardInterrupt:
base.io_error("Ejecución abortada") base.io_error("Ejecución abortada")