summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Picard <cedric.picard@efrei.net>2014-11-28 21:10:04 +0100
committerCédric Picard <cedric.picard@efrei.net>2014-11-28 21:10:04 +0100
commit08705c698b62c5ea8393a7cff6751659fdcf34f9 (patch)
treec97480a3dcf01d216d8a4e76c5fabd0ba0004bb6
parentfc9f8632da09763b54e25861dc6e1798091d0bba (diff)
downloadpasteme-08705c698b62c5ea8393a7cff6751659fdcf34f9.tar.gz
pasteme-08705c698b62c5ea8393a7cff6751659fdcf34f9.tar.bz2
pasteme-08705c698b62c5ea8393a7cff6751659fdcf34f9.zip
Fixed bug introduced by previous commit
-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