Home > other >  Loop lines processing data, not an error, the program suddenly like a crash, error is repetition
Loop lines processing data, not an error, the program suddenly like a crash, error is repetition

Time:10-16

Loop lines processing data, not an error, the program suddenly like a crash, error is repetition, problems caused by data is not conclusive,
Next start, the same data can be, but may also in a row to a sudden stop
CPU 0%
Don't have any computing resources
All errors are thrown, but the program is not capture

CodePudding user response:

Program is not to catch exceptions,
But because of who I am you only specify the specific exceptions, you don't have to capture other abnormalities, except you specify exceptions
Behind the last except, plus a except to capture other abnormalities, and see what happens
 except Exception as e: 
Print (' My exceptions are: 'e)

If I can't see anything, expand the scope of the try statement and see exactly what is going wrong,

CodePudding user response:

BaseException is the Exception of the parent class do

CodePudding user response:

reference 1st floor rrrr336 response:
program is not to catch exceptions,
But because of who I am you only specify the specific exceptions, you don't have to capture other abnormalities, except you specify exceptions
Behind the last except, plus a except to capture other abnormalities, and see what happens
 except Exception as e: 
Print (' My exceptions are: 'e)

If I can't see anything, expand the scope of the try statement and see what is going wrong in the end,


BaseException is the Exception of the parent class do

CodePudding user response:

reference yh523 reply: 3/f
Quote: refer to 1st floor rrrr336 response:
program is not to catch exceptions,
But because of who I am you only specify the specific exceptions, you don't have to capture other abnormalities, except you specify exceptions
Behind the last except, plus a except to capture other abnormalities, and see what happens
 except Exception as e: 
Print (' My exceptions are: 'e)

If I can't see anything, expand the scope of the try statement and see what is going wrong in the end,


BaseException is the Exception of the parent class is no

Oh, didn't notice your last BaseException, of course, BaseException all-encompassing, why BaseException and json and specific exceptions such as unicode put together?

Or try to get rid of all of the other exception, only except BaseException,
Or delete the other except, only an empty except:
Try:
.
Except:
.
Can not see what you can capture and give it a try,
Other details is not clear,

CodePudding user response:

Ha ha I is added after the
Difficult to write a line
  • Related