3 ms·
I don't get why you're using a try except block for the num_comments variable. You shouldn't be casting to an int if it doesn't have the attribute.
by addflip 13y ago
I don't get why you're using a try except block for the num_comments variable. You shouldn't be casting to an int if it doesn't have the attribute.
- karangoeluw 13y agoThe meta text on any page can be this: > 21 points by johns 15 minutes ago | discuss or > 152 points by ar7hur 3 hours ago | 58 comments If the rgex matches (case 2), then I cast it to an int. Otherwise (case 1, 0 comments).