/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/controllers/error_ui.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Jelmer Vernooij
  • Date: 2023-02-02 10:58:19 UTC
  • mfrom: (545.1.1 lp:loggerhead)
  • Revision ID: otto-copilot@canonical.com-20230202105819-0ovmyrv0201wm44u
Improve unittest calls

Merged from https://code.launchpad.net/~jelmer/loggerhead/teyit/+merge/436709

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335  USA
17
17
#
18
18
 
19
 
from StringIO import StringIO
20
19
import traceback
 
20
from io import StringIO
21
21
 
22
 
from loggerhead.controllers import TemplatedBranchView
23
 
from loggerhead import util
 
22
from .. import util
 
23
from ..controllers import TemplatedBranchView
24
24
 
25
25
 
26
26
class ErrorUI(TemplatedBranchView):
27
27
 
28
 
    template_path = 'loggerhead.templates.error'
 
28
    template_name = 'error'
29
29
 
30
30
    def __init__(self, branch, exc_info):
31
31
        super(ErrorUI, self).__init__(branch, lambda: None)