Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Added missing return in dump_dispatch for void type objects #34

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tijmenNL
Copy link

When dumping a void type object, it continues to the next type check and you'll get the following traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/SOAPpy/Server.py", line 415, in do_POST
    config = self.server.config)
  File "/usr/lib/python2.7/dist-packages/SOAPpy/SOAPBuilder.py", line 709, in buildSOAP
    return t.build()
  File "/usr/lib/python2.7/dist-packages/SOAPpy/SOAPBuilder.py", line 152, in build
    self.dump(v, k, typed = typed, ns_map = ns_map)
  File "/usr/lib/python2.7/dist-packages/SOAPpy/SOAPBuilder.py", line 289, in dump
    self.dump_dispatch(obj, tag, typed, ns_map)
  File "/usr/lib/python2.7/dist-packages/SOAPpy/SOAPBuilder.py", line 682, in dump_dispatch
    (tag, t, id, a, r, obj._marshalData(), tag))
UnboundLocalError: local variable 'id' referenced before assignment

If the instance is of void type it should return and not continue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant