Commit d0effe69 authored by Łukasz Nowak's avatar Łukasz Nowak

Fix "promise/plugin: Implement check_file_state promise plugin"

If there is no url parameter the promise fails, so simply switch to empty.
parent 983b810f
...@@ -19,7 +19,7 @@ class RunPromise(GenericPromise): ...@@ -19,7 +19,7 @@ class RunPromise(GenericPromise):
filename = self.getConfig('filename') filename = self.getConfig('filename')
state = self.getConfig('state') state = self.getConfig('state')
url = self.getConfig('url').strip() url = (self.getConfig('url') or '').strip()
try: try:
with open(filename) as f: with open(filename) as f:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment