aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar')
-rw-r--r--debug_toolbar/utils/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/utils/__init__.py b/debug_toolbar/utils/__init__.py
index 2d2ff10..b8bb4a1 100644
--- a/debug_toolbar/utils/__init__.py
+++ b/debug_toolbar/utils/__init__.py
@@ -146,7 +146,7 @@ def getframeinfo(frame, context=1):
start = lineno - 1 - context // 2
try:
lines, lnum = inspect.findsource(frame)
- except (IOError, IndexError):
+ except Exception: # findsource raises platform-dependant exceptions
lines = index = None
else:
start = max(start, 1)