Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!version fails if you checkout a tag instead of a branch #234

Open
Grazfather opened this issue Jan 18, 2021 · 0 comments
Open

!version fails if you checkout a tag instead of a branch #234

Grazfather opened this issue Jan 18, 2021 · 0 comments
Labels

Comments

@Grazfather
Copy link
Contributor

DEBUG:log:Processing message: version from C5B0PNGC9 (U16RK78GK)
2021-01-18 20:47:46,790 - bot_handler          - BotHandler::VersionCommand
Traceback (most recent call last):
  File "/src/handlers/bot_handler.py", line 40, in execute
    message = GitHandler(".").get_version()
  File "/src/util/githandler.py", line 75, in get_version
    current_branch = self.repo.refs.follow(b"HEAD")[0][1].decode().split("/")[-1]
IndexError: list index out of range
ERROR:log:BotHandler::VersionCommand
Traceback (most recent call last):
  File "/src/handlers/bot_handler.py", line 40, in execute
    message = GitHandler(".").get_version()
  File "/src/util/githandler.py", line 75, in get_version
    current_branch = self.repo.refs.follow(b"HEAD")[0][1].decode().split("/")[-1]
IndexError: list index out of range
@Grazfather Grazfather added the bug label Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant