diff options
author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2008-01-24 10:49:14 +0100 |
---|---|---|
committer | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2008-01-24 10:49:14 +0100 |
commit | 147ec0f47d6a132c4f62fbb17bc461291956dc23 (patch) | |
tree | de556b501d152057eca185dc5cd3b4e899b05fb6 /debugger.py | |
parent | 80ae3809ab623ebb7f123dd4c785c2bff319b97b (diff) | |
download | logilab-common-147ec0f47d6a132c4f62fbb17bc461291956dc23.tar.gz |
catch IOError that getsource might throw
Diffstat (limited to 'debugger.py')
-rw-r--r-- | debugger.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debugger.py b/debugger.py index 8774cbd..96c930b 100644 --- a/debugger.py +++ b/debugger.py @@ -149,6 +149,8 @@ class Debugger(Pdb): self.curframe.f_lineno) except KeyboardInterrupt: pass + except IOError: + Pdb.do_list(self, arg) else: Pdb.do_list(self, arg) do_l = do_list |