rename filename var since it is removed from func args
authorPavlos Ratis <dastergon@gentoo.org>
Sat, 1 Mar 2014 14:45:32 +0000 (16:45 +0200)
committerPavlos Ratis <dastergon@gentoo.org>
Sat, 1 Mar 2014 14:45:32 +0000 (16:45 +0200)
gkeys/actions.py

index 25013b3ba1f86f503b932b260e8db738de6841b3..8d381dbfd3b48f043d8dfcbd68dbedc73ce842af 100644 (file)
@@ -39,10 +39,10 @@ class Actions(object):
         if not seeds and not seedfile:
             self.logger.error("ACTIONS: load_seeds; no filename to load: "
             "setting = %s.  Please use the -s option to indicate: which seed "
-            "file to use." % filename)
+            "file to use." % seedfile)
             return None
         if seeds:
-            filepath = self.config.get_key(filename + "-seedfile")
+            filepath = self.config.get_key(seeds + "-seedfile")
         elif seedfile:
             filepath = os.path.join(self.config.get_key('seedsdir'),
                                     '%s.seeds' % seedfile)