This line is part of a simple Discord bot python script, but that's not important. It keeps saying "Indentation Error: Unindent does not match any outer indentation level" I discovered how to fix the other Indentation error with tabs and spaces, but I still don't know why this error constantly occurs... Here's the line of code:
async def cmd_clean(self, message, channel, server, author, search_range=50):
try:
float(search_range) # lazy check
search_range = min(int(search_range), 1000)
except:
return Response("enter a number. NUMBER. That means digits. `15`. Etc.", reply=True, delete_after=8)
- I'm somewhat new to python.
- That line is part of a cleaning command that will clear the bot's previous messages.