~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/console/service.py

  • Committer: Matt Giuca
  • Date: 2010-02-12 05:52:00 UTC
  • Revision ID: matt.giuca@gmail.com-20100212055200-lxsry6l34tc2m21q
doc/man/roles.rst: Update based on Will's feedback. Tutor access to submission repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
 
88
88
        msg = {'cmd':kind, 'text':text}
89
89
        try:
 
90
            json_response = ivle.chat.chat(host, port, msg, magic,decode=False)
 
91
 
 
92
            # Snoop the response from python-console to check that it's valid
90
93
            try:
91
 
                json_response = ivle.chat.chat(host, port, msg, magic,decode=False)
92
 
                # Snoop the response from python-console to check that it's valid
93
94
                response = cjson.decode(json_response)
94
 
            except (cjson.DecodeError, ivle.chat.ProtocolError):
 
95
            except cjson.DecodeError:
95
96
                # Could not decode the reply from the python-console server
96
97
                response = {"terminate":
97
98
                    "Communication to console process lost"}