From f9b3239f1a83ea30e2db212757408fb6015f321c 2008-06-04 08:15:46 From: Fernando Perez Date: 2008-06-04 08:15:46 Subject: [PATCH] Fix crash bug when no profiles were used. --- diff --git a/IPython/ipmaker.py b/IPython/ipmaker.py index f7c341b..6065535 100644 --- a/IPython/ipmaker.py +++ b/IPython/ipmaker.py @@ -663,9 +663,9 @@ object? -> Details about 'object'. ?object also works, ?? prints more. import_fail_info("ipy_user_conf") # Define the history file for saving commands in between sessions - if opts.profile: + try: histfname = 'history-%s' % opts.profile - else: + except AttributeError: histfname = 'history' IP.histfile = os.path.join(opts_all.ipythondir,histfname)