Relative Content

Tag Archive for error-handling

File import not supported

Hey guys I’ve been having this problem for months where I go to import a file from my directory and it’ll throw an error saying that the file can’t be found, what’s confusing though is that I can control click on the file that supposedly is not found and it will take me directly to it. Usually this error resolves itself by restarting VSCode but now for some reason I’ve run into this error again and it doesn’t seem to go away. I’m also in a WSL environment to run Foundry if that makes any difference.

Is error suppressing bad practice?

On a SO question I asked here about some code I was unsure about, someone replied “BTW, horrible code there: it uses the error suppressing symbol (@) a lot.”

Is error suppressing bad practice?

On a SO question I asked here about some code I was unsure about, someone replied “BTW, horrible code there: it uses the error suppressing symbol (@) a lot.”

Is error suppressing bad practice?

On a SO question I asked here about some code I was unsure about, someone replied “BTW, horrible code there: it uses the error suppressing symbol (@) a lot.”

Is error suppressing bad practice?

On a SO question I asked here about some code I was unsure about, someone replied “BTW, horrible code there: it uses the error suppressing symbol (@) a lot.”

Is error suppressing bad practice?

On a SO question I asked here about some code I was unsure about, someone replied “BTW, horrible code there: it uses the error suppressing symbol (@) a lot.”

Python – assert vs if & return

I am writing a script that does something to a text file (what it does is irrelevant for my question though). So before I do something to the file I want to check if the file exists. I can do this, no problem, but the issue is more that of aesthetics.

Python – assert vs if & return

I am writing a script that does something to a text file (what it does is irrelevant for my question though). So before I do something to the file I want to check if the file exists. I can do this, no problem, but the issue is more that of aesthetics.

Python – assert vs if & return

I am writing a script that does something to a text file (what it does is irrelevant for my question though). So before I do something to the file I want to check if the file exists. I can do this, no problem, but the issue is more that of aesthetics.

Python – assert vs if & return

I am writing a script that does something to a text file (what it does is irrelevant for my question though). So before I do something to the file I want to check if the file exists. I can do this, no problem, but the issue is more that of aesthetics.