quintel / etmoses

Online decision support tool to create local energy situations for neighbourhoods, cities and regions with a time resolution of 15 minutes created and maintained by Quintel – Not maintained
https://moses.energytransitionmodel.com
MIT License
11 stars 3 forks source link

[Airbrake] [Staging] NoMethodError: undefined method `-' for "":String #1522

Closed antw closed 7 years ago

antw commented 7 years ago

Airbrake error: #0786 Airbrake project: ETMoses

Error type: NoMethodError Error message: NoMethodError: undefined method-' for "":String **Where:**DelayedJob Worker` Occurred at: Oct 24, 2016 15:38:54 UTC First seen at: Oct 24, 2016 15:33:34 UTC Occurrences: 8 (8 since last deploy on Oct 24, 2016 10:04:17 UTC)

URL: <no information> File: app/models/network/node.rb

Backtrace:

app/models/network/node.rb:191:in capacity_margin
[PROJECT_ROOT]/app/models/network/node.rb:88:in consumption_margin_at
[PROJECT_ROOT]/app/models/network/path.rb:66:in block in available_capacity_at
[PROJECT_ROOT]/app/models/network/path.rb:66:in map
antw commented 7 years ago

I think this is similar to #1517: a blank capacity is being saved as "" instead of null.