[p4python] p4python errors

Smith, Jeff jsmith at medplus.com
Thu Jul 21 12:57:22 PDT 2005


I notice that sometimes p4python throws class type errors whereas other
times it throws strings as errors.  This makes it ugly to catch all
possible p4python errors and requires something akin to:

try:
	client.method()
except p4.P4Client.error:
	handle_this
except:
	if client.errors:
		handle_this
	else:
		raise

and even this won't catch everything since sometimes client.errors is
empty

Is anyone else seeing this?

Jeff
Python 2.4
p4python 0.5




More information about the p4python mailing list