From c8ad9ef90378fe45cb83d9d4f46290341deec2cb Mon Sep 17 00:00:00 2001
From: Sean Leavey <gpg@attackllama.com>
Date: Tue, 24 Mar 2020 09:47:36 +0100
Subject: [PATCH] Allow empty YAML files

---
 gwinc/struct.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gwinc/struct.py b/gwinc/struct.py
index 3b767a66..7c2e0392 100644
--- a/gwinc/struct.py
+++ b/gwinc/struct.py
@@ -294,7 +294,7 @@ class Struct(object):
         """Create Struct from YAML string.
 
         """
-        d = yaml.load(y, Loader=yaml_loader)
+        d = yaml.load(y, Loader=yaml_loader) or {}
         return cls(d)
 
 
-- 
GitLab