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))