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

TypeError: argument should be a bytes-like object or ASCII string, not 'NoneType' #11

Open
SoSongzhi opened this issue Nov 13, 2022 · 1 comment

Comments

@SoSongzhi
Copy link

hello, I would like to know what's wrong with that, thanks!

@Chiffon95
Copy link

@SoSongzhi
Hi, change def image like this

def image(self, data, num):
    image = {}
    height = data["imageHeight"]
    width = data["imageWidth"]
    image["height"] = height
    image["width"] = width
    image["id"] = num
    image["file_name"] = data["imagePath"].split("/")[-1]

    self.height = height
    self.width = width

    return image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants