|
@ -119,7 +119,7 @@ class NutsImport(models.TransientModel): |
|
|
logger.info('Starting to download %s' % url) |
|
|
logger.info('Starting to download %s' % url) |
|
|
try: |
|
|
try: |
|
|
res_request = requests.get(url) |
|
|
res_request = requests.get(url) |
|
|
except Exception, e: |
|
|
|
|
|
|
|
|
except Exception as e: |
|
|
raise UserError( |
|
|
raise UserError( |
|
|
_('Got an error when trying to download the file: %s.') % |
|
|
_('Got an error when trying to download the file: %s.') % |
|
|
str(e)) |
|
|
str(e)) |
|
|