diff --git a/spyderlib/widgets/dataframeeditor.py b/spyderlib/widgets/dataframeeditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/dataframeeditor.py
+++ b/spyderlib/widgets/dataframeeditor.py
@@ -179,7 +179,7 @@ class DataFrameModel(QAbstractTableModel):
                 try:

                     header = to_text_string(self.df_header[0],

                                             encoding='utf-8-sig')

-                except UnicodeDecodeError:

+                except:

                     header = to_text_string(self.df_header[0])

                 return to_qvariant(header)

             else:

diff --git a/spyderlib/widgets/dicteditorutils.py b/spyderlib/widgets/dicteditorutils.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/dicteditorutils.py
+++ b/spyderlib/widgets/dicteditorutils.py
@@ -194,7 +194,7 @@ def value_to_display(value, truncate=False, trunc_len=80, minmax=False):
             # Fixes Issue 2514

             try:

                 ini_col = to_text_string(cols[0], encoding='utf-8-sig')

-            except UnicodeDecodeError:

+            except:

                 ini_col = to_text_string(cols[0])

             cols = [ini_col] + [to_text_string(c) for c in cols[1:]]

         else:
Variable Explorer: Fix a full hang when creating DataFrames in PY2

Fixes #<I>