diff --git a/bin/compile b/bin/compile
index 1403bf4bcb9fe2abf3fc31435995d193d3ad1e2b..4ad531de0c510d14bb0239a43a04dc271c8c62f5 100755
--- a/bin/compile
+++ b/bin/compile
@@ -123,7 +123,7 @@ try:
 
         if url.scheme == 'mysql':
             DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
-except:
+except Exception:
     print 'Unexpected error:', sys.exc_info()
 
 EOF