From 9f216675ddbdf3f5585800b2c183c6f6f1202b3e 2018-08-14 02:21:03 From: Matthias Bussonnier Date: 2018-08-14 02:21:03 Subject: [PATCH] fix UnboundLocalError --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index b754011..97ade0d 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2789,6 +2789,7 @@ class InteractiveShell(SingletonConfigurable): ------- result : :class:`ExecutionResult` """ + result = None try: result = self._run_cell( raw_cell, store_history, silent, shell_futures)