aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/pastit.py2
1 files changed, 1 insertions, 1 deletions
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