Skip to content

Commit

Permalink
Fix codacy invalid syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisRayM committed Nov 18, 2019
1 parent e8531a9 commit e83ff00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions onadata/libs/utils/csv_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ def submit_csv(username, xform, csv_file, overwrite=False):
try:
interger = int(val)
except ValueError:
raise Exception(f'Unknown interger format: {val}')
raise Exception(
'Unknown interger format: {}'.format(val))
else:
row.update({key: interger})

Expand All @@ -282,7 +283,8 @@ def submit_csv(username, xform, csv_file, overwrite=False):
try:
decimal = float(row.get('key', ''))
except ValueError:
raise Exception(f'Unknown decimal format: {val}')
raise Exception(
'Unknown decimal format: {}'.format(val))
else:
row.update({key: decimal})

Expand Down

0 comments on commit e83ff00

Please sign in to comment.