Skip to content

Trying to print bytes instead of a string in cgetline() #2

@deoac

Description

@deoac

After choosing a 'regular' game, I get the following error:

File "./sst.py", line 3267, in cgetline
line = curwnd.getstr() + "\n"
TypeError: can't concat str to bytes

Suggest changing line 3267 from

line = curwnd.getstr() + "\n"

to

line = curwnd.getstr().decode('utf-8') + "\n"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions