mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] sql_export_excel: pylint
This commit is contained in:
committed by
Florian da Costa
parent
a66df4026f
commit
a09944e90f
@@ -93,13 +93,13 @@ class SqlExport(models.Model):
|
||||
sheets = wb.worksheets
|
||||
try:
|
||||
ws = sheets[self.sheet_position - 1]
|
||||
except IndexError:
|
||||
except IndexError as err:
|
||||
raise exceptions.ValidationError(
|
||||
_(
|
||||
"The Excel Template file contains less than %s sheets "
|
||||
"Please, adjust the Sheet Position parameter."
|
||||
)
|
||||
)
|
||||
) from err
|
||||
row_position = self.row_position or 1
|
||||
col_position = self.col_position or 1
|
||||
# Case of excel file creation
|
||||
|
||||
Reference in New Issue
Block a user