@@ -341,7 +341,7 @@ def expand_exception(exc, db, handle=None):
try:
if handle is not None:
log = db.get_log(handle)
- elif hasattr(handle, 'get_rpc_handle'):
+ elif hasattr(exc, 'get_rpc_handle') or hasattr(exc, 'log_context'):
log = db.get_log(exc)
else:
log = _("No server logs for this query")
@@ -1320,7 +1320,7 @@ def test_history_page():
assert_equal({}, response.context['filter_params'])
# Test pagination
- response = do_view('?q-page=100')
+ response = do_view('q-page=100')
assert_equal(0, len(response.context['page'].object_list))
def test_strip_trailing_semicolon():