diff --git a/crawl.py b/crawl.py index a89f906..6a240f0 100755 --- a/crawl.py +++ b/crawl.py @@ -230,4 +230,8 @@ elif args.csv: for rate in results.rates.values(): w.writerow([rate.abbr, rate.full_name, rate.ask, rate.bid, rate.date]) else: - print(fmt_and_calc(args.amt, args.currency, results, direction)) + if args.amt and args.currency: + print(fmt_and_calc(args.amt, args.currency, results, direction)) + else: + print("Missing arguments. Exiting", file=sys.stderr) + exit(1)