From 08705c698b62c5ea8393a7cff6751659fdcf34f9 Mon Sep 17 00:00:00 2001 From: Cédric Picard Date: Fri, 28 Nov 2014 21:10:04 +0100 Subject: Fixed bug introduced by previous commit --- scripts/pastit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pastit.py b/scripts/pastit.py index 3a61e19..3527b4f 100755 --- a/scripts/pastit.py +++ b/scripts/pastit.py @@ -50,7 +50,7 @@ def get(url): def main(): args = docopt(__doc__) - if '://' in args["FILE"]: + if args["FILE"] and '://' in args["FILE"]: print(get(args["FILE"])) return -- cgit v1.2.3