Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: argument of type 'NoneType' is not iterable #218

Open
sarahgguwu opened this issue Jun 24, 2021 · 0 comments
Open

TypeError: argument of type 'NoneType' is not iterable #218

sarahgguwu opened this issue Jun 24, 2021 · 0 comments

Comments

@sarahgguwu
Copy link

Encountering this error in the logs with a refresh interval set to 10, config.yaml is below the log.

I2021-06-24 04:37:32,445 [root] starting v1.6.9 with args: /src/run.py --alerter discord --webhook https://discord.com/api/webhooks/857479264924598275/4D-9DJPzmQULSJunU0SNjhawqxbBIvko8GU6i7DbQMSMfgqqq2W2YkMFEbnTWofu0ATc
I2021-06-24 04:37:33,614 [root] discord alerter initialized with kwargs: webhook_url=https://discord.com/api/webhooks/857479264924598275/4D-9DJPzmQULSJunU0SNjhawqxbBIvko8GU6i7DbQMSMfgqqq2W2YkMFEbnTWofu0ATc
E2021-06-24 04:37:33,615 [root] caught exception
Traceback (most recent call last):
  File "/src/run.py", line 58, in main
    config = parse_config(args.config)
  File "/src/config.py", line 47, in parse_config
    refresh_interval = data['refresh_interval'] if 'refresh_interval' in data else 1
TypeError: argument of type 'NoneType' is not iterable
I2021-06-24 04:39:38,425 [root] starting v1.6.9 with args: /src/run.py --alerter discord --webhook https://discord.com/api/webhooks/857479264924598275/4D-9DJPzmQULSJunU0SNjhawqxbBIvko8GU6i7DbQMSMfgqqq2W2YkMFEbnTWofu0AT
I2021-06-24 04:39:39,580 [root] discord alerter initialized with kwargs: webhook_url=https://discord.com/api/webhooks/857479264924598275/4D-9DJPzmQULSJunU0SNjhawqxbBIvko8GU6i7DbQMSMfgqqq2W2YkMFEbnTWofu0AT
E2021-06-24 04:39:39,581 [root] caught exception
Traceback (most recent call last):
  File "/src/run.py", line 58, in main
    config = parse_config(args.config)
  File "/src/config.py", line 47, in parse_config
    refresh_interval = data['refresh_interval'] if 'refresh_interval' in data else 1
TypeError: argument of type 'NoneType' is not iterable
I2021-06-24 04:44:24,578 [root] starting v1.6.9 with args: /src/run.py --alerter discord --webhook https://discord.com/api/webhooks/857479264924598275/4D-9DJPzmQULSJunU0SNjhawqxbBIvko8GU6i7DbQMSMfgqqq2W2YkMFEbnTWofu0AT
I2021-06-24 04:44:26,300 [root] discord alerter initialized with kwargs: webhook_url=https://discord.com/api/webhooks/857479264924598275/4D-9DJPzmQULSJunU0SNjhawqxbBIvko8GU6i7DbQMSMfgqqq2W2YkMFEbnTWofu0AT



---
refresh_interval: 10 # seconds
max_price: 1000 # dollars/euros/etc
urls:
  - https://www.amazon.ca/dp/B08KWPDXJZ/
  - https://www.amazon.ca/dp/B08L8LG4M3
  - https://www.amazon.ca/dp/B08L8JNTXQ
  - https://www.amazon.ca/dp/B08L8KC1J7
  - https://www.amazon.ca/dp/B08L8L9TCZ
  - https://www.amazon.ca/dp/B08LW46GH2
  - https://www.amazon.ca/dp/B08L8L71SM
  - https://www.amazon.ca/dp/B08KY322TH
  - https://www.amazon.ca/dp/B08KXZV626
  - https://www.amazon.ca/dp/B08KY266MG
  - https://www.amazon.ca/dp/B08KWN2LZG
  - https://www.amazon.ca/dp/B08KWPDXJZ
  - https://www.amazon.ca/dp/B08KWLMZV4
  - https://www.amazon.ca/dp/B08HBF5L3K
  - https://www.amazon.ca/dp/B08HBJB7YD
  - https://www.amazon.ca/dp/B08LF32LJ6
  - https://www.amazon.ca/dp/B08LF1CWT2
  - https://www.bhphotovideo.com/c/product/1602755-REG/asus_dualrtx30708g_geforce_rtx_3070_8g.html
  - https://www.bhphotovideo.com/c/product/1602756-REG/asus_strixrtx3070o8_rog_strix_geforce_rtx.html
  - https://www.bhphotovideo.com/c/product/1598689-REG/gigabyte_gv_n3070gaming_oc_8gd_geforce_rtx_3070_gaming.html
  - https://www.bhphotovideo.com/c/product/1599833-REG/gigabyte_gv_n3070eagle_8gd_geforce_rtx_3070_eagle.html
  - https://www.bhphotovideo.com/c/product/1606949-REG/gigabyte_gv_n306teagle_8gd_rtx_3060_ti_eagle.html
  - https://www.bhphotovideo.com/c/product/1609756-REG/asus_ko_rtx3060ti_o8g_gaming_ko_geforce_rtx_3060.html
  - https://www.bhphotovideo.com/c/product/1607025-REG/asus_tuf_rtx3060ti_o8g_gaming_geforce_rtx_3060_ti.html
  - https://www.bhphotovideo.com/c/product/1609440-REG/pny_technologies_vcg3060t8dfxppb_geforce_rtx_3060_ti.html
  - https://www.bhphotovideo.com/c/product/1606946-REG/gigabyte_gv_n306tgamingoc_pro_8gd_rtx_3060_ti_gaming.html
  - https://www.bhphotovideo.com/c/product/1606948-REG/gigabyte_gv_n306teagle_oc_8gd_rtx_3060_ti_eagle.html
  - https://www.bhphotovideo.com/c/product/1606945-REG/gigabyte_gv_n306taorus_m_8gd_aorus_rtx_3060_ti.html
  - https://www.bhphotovideo.com/c/product/1606947-REG/gigabyte_gv_n306tgaming_oc_8gd_rtx_3060_ti_gaming.html
  - https://www.bhphotovideo.com/c/product/1610844-REG/msi_g306tv2xc_geforce_rtx_3060_ti.html
  - https://www.bhphotovideo.com/c/product/1608081-REG/zotac_zt_a30610e_10m_gaming_geforce_rtx_3060.html
  - https://www.bhphotovideo.com/c/product/1608111-REG/zotac_zt_a30610h_10m_gaming_geforce_rtx_3060.html
  - https://www.newegg.com/asrock-radeon-rx-6800-xt-rx-6800-xt-16g/p/N82E16814930045
  - https://www.newegg.com/asus-radeon-rx-6800-xt-rx6800xt-16g/p/N82E16814126472
  - https://www.newegg.com/gigabyte-radeon-rx-6800-xt-gv-r68xt-16gc-b/p/N82E16814932373
  - https://www.newegg.com/msi-radeon-rx-6800-xt-rx-6800-xt-16g/p/N82E16814137607
  - https://www.newegg.com/sapphire-radeon-rx-6800-xt-21304-01-20g/p/N82E16814202388  
  - https://www.memoryexpress.com/Products/MX00116013
  - https://www.memoryexpress.com/Products/MX00116061
  - https://www.memoryexpress.com/Products/MX00114689
  - https://www.memoryexpress.com/Products/MX00114567
  - https://www.memoryexpress.com/Products/MX00114560
  - https://www.memoryexpress.com/Products/MX00114405
  - https://www.memoryexpress.com/Products/MX00114607
  - https://www.memoryexpress.com/Products/MX00114688
  - https://www.memoryexpress.com/Products/MX00114024
  - https://www.memoryexpress.com/Products/MX00116017
  - https://www.memoryexpress.com/Products/MX00114003
  - https://www.memoryexpress.com/Products/MX00116016
  - https://www.memoryexpress.com/Products/MX00116528
  - https://www.memoryexpress.com/Products/MX00114092
  - https://www.memoryexpress.com/Products/MX00114785
  - https://www.memoryexpress.com/Products/MX00114448
  - https://www.memoryexpress.com/Products/MX00114566
  - https://www.memoryexpress.com/Products/MX00113954
  - https://www.memoryexpress.com/Products/MX00116063
  - https://www.memoryexpress.com/Products/MX00114606
  - https://www.memoryexpress.com/Products/MX00113956
  - https://www.memoryexpress.com/Products/MX00115353
  - https://www.memoryexpress.com/Products/MX00114093
  - https://www.memoryexpress.com/Products/MX00115134
  - https://www.memoryexpress.com/Products/MX00114404
  - https://www.memoryexpress.com/Products/MX00114155
  - https://www.memoryexpress.com/Products/MX00116653
  - https://www.memoryexpress.com/Products/MX00115232
  - https://www.memoryexpress.com/Products/MX00117162
  - https://www.memoryexpress.com/Products/MX00116163
  - https://www.memoryexpress.com/Products/MX00114407
  - https://www.memoryexpress.com/Products/MX00115133
  - https://www.memoryexpress.com/Products/MX00116071
  - https://www.memoryexpress.com/Products/MX00114923
  - https://www.memoryexpress.com/Products/MX00116072
  - https://www.memoryexpress.com/Products/MX00114818
  - https://www.memoryexpress.com/Products/MX00114447  
  - https://www.memoryexpress.com/Products/MX00116493
  - https://www.memoryexpress.com/Products/MX00114937
  - https://www.memoryexpress.com/Products/MX00116441
  - https://www.memoryexpress.com/Products/MX00115473
  - https://www.memoryexpress.com/Products/MX00115356
  - https://www.memoryexpress.com/Products/MX00115472
  - https://www.memoryexpress.com/Products/MX00116115
  - https://www.memoryexpress.com/Products/MX00115288
  - https://www.memoryexpress.com/Products/MX00116588
  - https://www.memoryexpress.com/Products/MX00116448
  - https://www.memoryexpress.com/Products/MX00115289
  - https://www.memoryexpress.com/Products/MX00116590
  - https://www.memoryexpress.com/Products/MX00115048
  - https://www.memoryexpress.com/Products/MX00116447
  - https://www.memoryexpress.com/Products/MX00116500
  - https://www.memoryexpress.com/Products/MX00116498
  - https://www.memoryexpress.com/Products/MX00116436
  - https://www.memoryexpress.com/Products/MX00115049
  - https://www.memoryexpress.com/Products/MX00115441
  - https://www.memoryexpress.com/Products/MX00115751
  - https://www.memoryexpress.com/Products/MX00116592
  - https://www.memoryexpress.com/Products/MX00115741
  - https://www.memoryexpress.com/Products/MX00115474
  - https://www.memoryexpress.com/Products/MX00114940
  - https://www.memoryexpress.com/Products/MX00114939
  - https://www.memoryexpress.com/Products/MX00114938
  - https://www.memoryexpress.com/Products/MX00114997


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant