except Exception as e:
print("Failure while trying to import the toaster config file %s: %s" %\
(config_file, e))
- traceback.print_exc(e)
+ traceback.print_exc()
return is_changed
except Exception as e:
logger.error("runbuilds: Error launching build %s" % e)
- traceback.print_exc(e)
+ traceback.print_exc()
if "[Errno 111] Connection refused" in str(e):
# Connection refused, read toaster_server.out
errmsg = bec.readServerLogFile()
BRError.objects.create(req = br,
errtype = str(type(e)),
errmsg = errmsg,
- traceback = traceback.format_exc(e))
+ traceback = traceback.format_exc())
br.state = BuildRequest.REQ_FAILED
br.save()
bec.be.lock = BuildEnvironment.LOCK_FREE
except Exception as exc:
import traceback
- config.logger.error("Exception while running test. Tracedump: \n%s", traceback.format_exc(exc))
+ config.logger.error("Exception while running test. Tracedump: \n%s", traceback.format_exc())
finally:
os.chdir(crt_dir)
return len(result.failures)
except ShellCmdException as exc:
import traceback
- config.logger.error("Error while setting up testing. Traceback: \n%s", traceback.format_exc(exc))
+ config.logger.error("Error while setting up testing. Traceback: \n%s", traceback.format_exc())
finally:
if need_cleanup and testdir is not None:
clean_up(testdir)
import traceback
if proxy_settings is not None:
logger.info("EE: Using proxy %s" % proxy_settings)
- logger.warning("EE: could not connect to %s, skipping update: %s\n%s" % (self.apiurl, e, traceback.format_exc(e)))
+ logger.warning("EE: could not connect to %s, skipping update: %s\n%s" % (self.apiurl, e, traceback.format_exc()))
return
# update branches; only those that we already have names listed in the
except Exception as e:
print("Exception ", e)
- traceback.print_exc(e)
+ traceback.print_exc()
# sort by directories first, then by name
rsorted = sorted(response, key=lambda entry : entry['name'])