~ubuntu-branches/ubuntu/trusty/openipmi/trusty-updates

« back to all changes in this revision

Viewing changes to swig/python/openipmigui/gui_domainDialog.py

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2009-07-28 10:17:23 UTC
  • mto: (2.1.4 squeeze) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20090728101723-t19vhrbss6yz5v8u
Import upstream version 2.0.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
                continue
187
187
            rv = args.set_val(idx, None, val);
188
188
            if (rv != 0):
189
 
                self.errstr.SetError("Error setting field " + f[1] + ": "
190
 
                                     + OpenIPMI.get_error_string(rv))
191
 
                raise Exception()
 
189
                err = ("Error setting field " + f[1] + ": "
 
190
                       + OpenIPMI.get_error_string(rv))
 
191
                self.errstr.SetError(err)
 
192
                raise Exception(err)
192
193
            pass
193
194
        return args
194
195
 
329
330
                args.append(arg);
330
331
                pass
331
332
            pass
332
 
        except:
 
333
        except Exception, e:
333
334
            self.status.SetError("Error handling connection arguments")
 
335
            import sys, traceback
 
336
            t, v, b = sys.exc_info()
 
337
            bl = traceback.format_tb(b)
 
338
            b = ""
 
339
            for x in bl:
 
340
                b += "\n" + x
 
341
            self.mainhandler.log("EINF", "Connection Argument Handling error: "
 
342
                                 + str(t) + ":" + str(v) + ":" + b)
334
343
            return
335
344
        domain_id = OpenIPMI.open_domain3(name, [], args, None, None)
336
345
        if (domain_id == None):