##// END OF EJS Templates
Fix crash bug when no profiles were used.
Fernando Perez -
Show More
@@ -663,9 +663,9 b" object? -> Details about 'object'. ?object also works, ?? prints more."
663 import_fail_info("ipy_user_conf")
663 import_fail_info("ipy_user_conf")
664
664
665 # Define the history file for saving commands in between sessions
665 # Define the history file for saving commands in between sessions
666 if opts.profile:
666 try:
667 histfname = 'history-%s' % opts.profile
667 histfname = 'history-%s' % opts.profile
668 else:
668 except AttributeError:
669 histfname = 'history'
669 histfname = 'history'
670 IP.histfile = os.path.join(opts_all.ipythondir,histfname)
670 IP.histfile = os.path.join(opts_all.ipythondir,histfname)
671
671
General Comments 0
You need to be logged in to leave comments. Login now