C
C
cryptoforum2021-06-16 08:20:57
Command line
cryptoforum, 2021-06-16 08:20:57

How to hide an error notification in the application console?

60c990e381de7607824951.pngos.mkdir(rf"C:\\Users\\{user}\\AppData\\files")
You need to hide this in the console window so that it is not shown.
FileExistsError(17, 'The file cannot be created because it already exists')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2021-06-16
@Zoominger

Wrap in try-catch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question