Skip to content

Commit 07b848a

Browse files
committed
Updated to Exercise 1.31: Error handling
1 parent 7485597 commit 07b848a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Work/pcost.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def portfolio_cost(filename):
99
try:
1010
s += int(row[1]) * float(row[2])
1111
except ValueError:
12-
print(f"Couldn't calculate line: {line}")
12+
print(f"Couldn't calculate line: {line}. Wrong or missing data.")
1313
return s
1414

1515
cost = portfolio_cost('Data/portfolio.csv')

0 commit comments

Comments
 (0)