edit:this is the whole code https://pastebin.com/Njp9AsP4
this is the code that gives me the error:
def save_file_as():
'''Save new file or save existing file with another name'''
filename = sg.popup_get_file('Save As', save_as=True, no_window=True)
try:
if filename:
file = pathlib.Path(filepath)
file.write_text(values.get('_BODY_'))
filename = filepath.split('/')
window.TKroot.title(filename[-1] + '- memopad')
return file
except:
pass
and this is the error:
[Running] python -u "d:\python\memopad v1.py"
File "d:\python\memopad v1.py", line 51
def save_file_as():
^
IndentationError: unexpected unindent
i first tried googleing it but could only find people who left out the except: line witch is not my problem.
then i tried removing the try: and except: and to my surprise the error remains.
so its 2AM rn and i decided to make a stackoverflow account to see if anyone here could help.
other info: (im using python3.8.3)(im using windows 10)(im using vscode)(and im a nube to programing)