carlosrsabreu / devo-abastecer

Twitter bot that publishes weekly the fuel prices updates on Madeira island.
https://twitter.com/devoabastecer
MIT License
10 stars 2 forks source link

[BUG]: Workflow Fail – Extract data from DRTT #3

Closed HarryVasanth closed 2 years ago

HarryVasanth commented 2 years ago

Expected Behavior

➡️ Run python script.py >gas_info.json

  python script.py > gas_info.json
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/[3](https://github.com/carlosrsabreu/devo-abastecer/runs/6851627521?check_suite_focus=true#step:5:3).10.[4](https://github.com/carlosrsabreu/devo-abastecer/runs/6851627521?check_suite_focus=true#step:5:4)/x[6](https://github.com/carlosrsabreu/devo-abastecer/runs/6851627521?check_suite_focus=true#step:5:6)4
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.4/x64/lib

Actual Behavior

➡️ Run python script.py > gas_info.json

Traceback (most recent call last):
  File "/home/runner/work/devo-abastecer/devo-abastecer/script.py", line 32, in <module>
    start_date, end_date = gas_info[i].replace('.', '-').split('\xa0a ')
ValueError: not enough values to unpack (expected 2, got 1)
Error: Process completed with exit code 1.

Steps to Reproduce the Problem

Extract data from DRTT

  1. The issue currently exists in all branches.
  2. The issue can be reproduced by running the workflow manually or on schedule.