titilambert / pyhydroquebec

DEPRECATED - Get your consumption data from your HydroQuebec account (www.hydroquebec.com)
Apache License 2.0
94 stars 44 forks source link

remove float formating to period_projection #70

Closed chdagenais closed 2 years ago

chdagenais commented 3 years ago

Was getting an error while gathering my data:

raceback (most recent call last):
  File "/Users/charlesdagenais/Sites/pyhydroquebec/./env/bin/pyhydroquebec", line 33, in <module>
    sys.exit(load_entry_point('pyhydroquebec', 'console_scripts', 'pyhydroquebec')())
  File "/Users/charlesdagenais/Sites/pyhydroquebec/pyhydroquebec/__main__.py", line 168, in main
    output_text(results[0], args.hourly)
  File "/Users/charlesdagenais/Sites/pyhydroquebec/pyhydroquebec/outputter.py", line 19, in output_text
    print(CONSUMPTION_PROFILE_TPL.format(d=customer.current_period))
TypeError: unsupported format string passed to NoneType.__format__

because 'period_projection': None in customer.current_period