From 929ad58ebdc527ba0ef4ec3ddb834742f70ecc9b Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Wed, 14 Mar 2018 08:34:43 -0700 Subject: [PATCH] Fix bug with validating filenames from args in GUI --- onionshare_gui/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onionshare_gui/__init__.py b/onionshare_gui/__init__.py index e1ad8743..13612e77 100644 --- a/onionshare_gui/__init__.py +++ b/onionshare_gui/__init__.py @@ -92,10 +92,10 @@ def main(): valid = True for filename in filenames: if not os.path.isfile(filename) and not os.path.isdir(filename): - Alert(self.common, strings._("not_a_file", True).format(filename)) + Alert(common, strings._("not_a_file", True).format(filename)) valid = False if not os.access(filename, os.R_OK): - Alert(self.common, strings._("not_a_readable_file", True).format(filename)) + Alert(common, strings._("not_a_readable_file", True).format(filename)) valid = False if not valid: sys.exit()