fix CallErrors constructor (refs #290)
This commit is contained in:
parent
478ce235ed
commit
7a51e53faa
1 changed files with 4 additions and 4 deletions
|
|
@ -1,16 +1,16 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright(C) 2010 Romain Bignon, Christophe Benz
|
# Copyright(C) 2010 Romain Bignon, Christophe Benz
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, version 3 of the License.
|
# the Free Software Foundation, version 3 of the License.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
@ -31,7 +31,7 @@ class CallErrors(Exception):
|
||||||
Exception.__init__(self, u'These errors have been raised in backend threads:\n%s' % (
|
Exception.__init__(self, u'These errors have been raised in backend threads:\n%s' % (
|
||||||
u'\n'.join((u' * %s: %s%s' % (backend, error, backtrace + '\n'
|
u'\n'.join((u' * %s: %s%s' % (backend, error, backtrace + '\n'
|
||||||
if logging.root.level == logging.DEBUG else ''))
|
if logging.root.level == logging.DEBUG else ''))
|
||||||
for backend, error, backtrace in self.errors)))
|
for backend, error, backtrace in errors)))
|
||||||
self.errors = copy(errors)
|
self.errors = copy(errors)
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue