about summary refs log tree commit homepage
path: root/lib/dtas/state_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dtas/state_file.rb')
-rw-r--r--lib/dtas/state_file.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dtas/state_file.rb b/lib/dtas/state_file.rb
index b577850..f16a866 100644
--- a/lib/dtas/state_file.rb
+++ b/lib/dtas/state_file.rb
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2016 all contributors <dtas-all@nongnu.org>
+# Copyright (C) all contributors <dtas-all@nongnu.org>
 # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
 # frozen_string_literal: true
 require 'yaml'
@@ -14,7 +14,7 @@ class DTAS::StateFile # :nodoc:
   end
 
   def tryload
-    YAML.load(IO.binread(@path)) if File.readable?(@path)
+    DTAS.yaml_load(IO.binread(@path)) if File.readable?(@path)
   end
 
   def dump(obj, force_fsync = false)