B
Bob Roberts
I'm sure there must be a better way to do this:
try:
if item.page:
DoSomething()
except AttributError:
pass
Is there a simple way to check if item has "page" as one of its attributes?
try:
if item.page:
DoSomething()
except AttributError:
pass
Is there a simple way to check if item has "page" as one of its attributes?