From 99a9dc030ff3b0e3174ded088de30cfbc1e8b680 Mon Sep 17 00:00:00 2001 From: ralwafaie Date: Tue, 3 Oct 2017 18:30:34 +0200 Subject: [PATCH] FIX flake8 --- base_location_nuts/wizard/nuts_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_location_nuts/wizard/nuts_import.py b/base_location_nuts/wizard/nuts_import.py index 8e6223c56..a43bcc4a3 100644 --- a/base_location_nuts/wizard/nuts_import.py +++ b/base_location_nuts/wizard/nuts_import.py @@ -119,7 +119,7 @@ class NutsImport(models.TransientModel): logger.info('Starting to download %s' % url) try: res_request = requests.get(url) - except Exception, e: + except Exception as e: raise UserError( _('Got an error when trying to download the file: %s.') % str(e))