From 7f42bd9d867372b75b4e1657ebc6552e9ef062e1 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Sat, 25 Jul 2015 13:55:18 -0700 Subject: gkeys/actions.py: Fix a traceback when a filename does not have an extension This will instead get the filename itself back. --- gkeys/gkeys/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gkeys') diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py index 6610480..a4081c9 100644 --- a/gkeys/gkeys/actions.py +++ b/gkeys/gkeys/actions.py @@ -779,7 +779,7 @@ class Actions(object): _unicode("ACTIONS: verify; local file %s") % filepath) success = os.path.isfile(filepath) if (not signature - and '.' + filepath.rsplit('.', 1)[1] not in EXTENSIONS): + and '.' + filepath.rsplit('.', 1)[-1] not in EXTENSIONS): success_fetch = False for ext in EXTENSIONS: sig_path = filepath + ext -- cgit v1.2.3-65-gdbad