Skip to content

Commit 31ec5ce

Browse files
committed
chore: return None instead of -1
1 parent a4485e3 commit 31ec5ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

priceloopcurrency/function.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def return_currency_rates(from_currency: str, to_currency: str) -> float:
55
try:
66
return str(c.get_rate(from_currency, to_currency))
77
except:
8-
return str(-1)
8+
return None
99

1010
def handler(event, context):
1111
return list(map(lambda row: return_currency_rates(row[0], row[1]), event["BatchedArgs"]))

0 commit comments

Comments
 (0)