revisiting the "What am I running on?" question

songbird songbird at anthive.com
Tue Feb 19 09:09:24 EST 2019


MRAB wrote:
...
> Don't use a bare except, it'll catch _any_ exception.

  that's ok with this code IMO, but i see your point.


> If the regex matches, re.search will return a match object; if it 
> doesn't match, it'll return None.
>
> In any case, +1 to Dan's answer.
>
> [snip]

  ok, thanks!


  songbird



More information about the Python-list mailing list