Browse files

Merge branch 'master' into dev

  • Loading branch information...
2 parents 3b1e0c7 + f3c3f77 commit 176b35498754575120c28c5ac6540950f0454ae8 Felipe Prenholato committed Nov 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 data_importer/
@@ -82,7 +82,7 @@ def _get_reader(self,reader=None,reader_kwargs={}):
if parts[-1].lower() not in READERS_X_EXTENSIONS:
raise ValueError,_(u"Doesn't exist a relation between file extension and a reader. You should specify a reader from data_importer.readers or crete your own.")
return READERS_X_EXTENSIONS[parts[-1].lower()](self.import_file,**reader_kwargs)
- except Exception, err:
+ except Exception:
exc_info = sys.exc_info()
self.logger.critical(_("Something goes wrong when try to read the file!"))
@@ -247,10 +247,10 @@ def save_gen(self):
except NotImplementedError:
return rows
- except Exception, err:
+ except Exception as err:
exc_info = sys.exc_info()
- self.logger.critical(_("Process stoped with error %s."),err)
+ self.logger.critical(_("Process stoped with error %s: %s."),err.__class__.__name__, err)
def save(self,i,row):

0 comments on commit 176b354

Please sign in to comment.