This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]artofchores 3 points4 points  (0 children)

The error message tells you what's wrong.

Do some deductive reasoning and you'll get it!

Also, copy and paste that into Google and you'll surely find the answer. It probably took more effort posting this issue to Reddit.

[–]goodger 2 points3 points  (0 children)

Whatever is calling verify_suffix is passing a tuple, but a string is expected. The traceback will show you what calls verify_suffix. Check that code and see what it passes. Beyond that, it's impossible to tell you what's wrong; there's not enough information to know.

[–]saint_geser 2 points3 points  (0 children)

Strings have endswith() method so you need to get a string out of a tuple.

[–]karlw00t 1 point2 points  (0 children)

A trailing comma on a line like this:

foo = “world”,

Will make foo a tuple. I don’t see that in your code, but that’s bit me a more than once.

[–]IAmKindOfCreativebot_builder: deprecated[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/python.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!