From cb5137c5264abf5428f1d50173d94bc7babe8788 Mon Sep 17 00:00:00 2001 From: Mitsuo Takaki Date: Sat, 11 Feb 2017 01:15:09 -0800 Subject: [PATCH] Fixing default list parameter --- cachet_url_monitor/scheduler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cachet_url_monitor/scheduler.py b/cachet_url_monitor/scheduler.py index e8ef167..f32aa67 100644 --- a/cachet_url_monitor/scheduler.py +++ b/cachet_url_monitor/scheduler.py @@ -13,8 +13,10 @@ class Agent(object): and updating the component. """ - def __init__(self, configuration, decorators=[]): + def __init__(self, configuration, decorators=None): self.configuration = configuration + if decorators is None: + decorators = [] self.decorators = decorators def execute(self):