mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Rescue ZeroDivisionError on validation, closes #2188
This commit is contained in:
parent
cefdd1c01d
commit
4aaeb16d24
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ module LiquidInterpolatable
|
|||
|
||||
def validate_interpolation
|
||||
interpolated
|
||||
rescue Liquid::ZeroDivisionError => e
|
||||
# Ignore error (likely due to possibly missing variables on "divided_by")
|
||||
rescue Liquid::Error => e
|
||||
errors.add(:options, "has an error with Liquid templating: #{e.message}")
|
||||
rescue
|
||||
|
|
Loading…
Add table
Reference in a new issue