diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/__init__.py
+++ b/salt/pillar/__init__.py
@@ -364,7 +364,7 @@ class Pillar(object):
                             ext = self.ext_pillars[key](self.opts['id'], pillar, val)
                         update(pillar, ext)
 
-                    except TypeError, e:
+                    except TypeError as e:
                         if e.message.startswith('ext_pillar() takes exactly '):
                             log.warning('Deprecation warning: ext_pillar "{0}"'\
                                         ' needs to accept minion_id as first'\
pillar/__init__.py: use modern "except X as Y" syntax