softspace(): be prepared to catch AttributeError as well as TypeError
upon attempted attribute assignment. Caught by MWH, SF bug #462522.
This commit is contained in:
parent
22cd768177
commit
555d12f986
|
@ -20,7 +20,8 @@ def softspace(file, newvalue):
|
|||
pass
|
||||
try:
|
||||
file.softspace = newvalue
|
||||
except TypeError: # "attribute-less object" or "read-only attributes"
|
||||
except (AttributeError, TypeError):
|
||||
# "attribute-less object" or "read-only attributes"
|
||||
pass
|
||||
return oldvalue
|
||||
|
||||
|
|
Loading…
Reference in New Issue