Skip to content

Commit

Permalink
ENH Notifier: use iPDB if available
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Jan 29, 2017
1 parent f05bc02 commit ce041b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eelbrain/_utils/com.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from distutils.version import LooseVersion
from email.mime.text import MIMEText
import keyring
import pdb
import smtplib
import socket
import sys
Expand Down Expand Up @@ -144,6 +143,10 @@ def __exit__(self, type_, value, traceback_):
if self.debug:
traceback.print_exc()
print('')
try:
import ipdb as pdb
except ImportError:
import pdb
pdb.post_mortem(traceback_)
else:
event = '{host} finished {task}'.format(host=host, task=self.name)
Expand Down

0 comments on commit ce041b3

Please sign in to comment.