robzr / ecobar

Ecobee BitBar plugin for monitoring and controlling an Ecobee thermostat from your macOS menu bar.
8 stars 1 forks source link

TypeError on Init #4

Open sandinak opened 6 years ago

sandinak commented 6 years ago

Getting this error on init:

brmathes@BRMATHES-M-41PD > ./ecoBar.1m.rb
/Users/brmathes/.bitbar/ecobee/ecobee/token.rb:147:in `rescue in block in refresh_access_token_wrapper': class or module required for rescue clause (TypeError)
    from /Users/brmathes/.bitbar/ecobee/ecobee/token.rb:145:in `block in refresh_access_token_wrapper'
    from /Users/brmathes/.bitbar/ecobee/ecobee/token.rb:144:in `times'
    from /Users/brmathes/.bitbar/ecobee/ecobee/token.rb:144:in `refresh_access_token_wrapper'
    from /Users/brmathes/.bitbar/ecobee/ecobee/token.rb:58:in `access_token'
    from /Users/brmathes/.bitbar/ecobee/ecobee/token.rb:49:in `initialize'
    from ./ecoBar.1m.rb:53:in `new'
    from ./ecoBar.1m.rb:53:in `<main>'

Looking at the code .. i can't see anything obvious and my ruby-fu has atrophied. Any ideas?