Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Timeout error message should be a bytes string #625

Closed
@JoshData

Description

@JoshData

Athttps://github.com/gitpython-developers/GitPython/blob/master/git/cmd.py#L650, I think the error message about timeouts should be ab"..." bytes string and not a regular string. You can see right afterwards in the endswith call that the string is expected to be a bytes string.

                        stderr_value = 'Timeout: the command "%s" did not complete in %d ' \                                       'secs.' % (" ".join(command), kill_after_timeout)                ....                if stderr_value.endswith(b"\n"):                    stderr_value = stderr_value[:-1]

So it should be:

                        stderr_value = b'Timeout: the command "%s" did not complete in %d ' \                                       b'secs.' % (" ".join(command), kill_after_timeout)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp