aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpasteme.py2
-rwxr-xr-xscripts/pastit.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pasteme.py b/pasteme.py
index 03cdc23..93e569b 100755
--- a/pasteme.py
+++ b/pasteme.py
@@ -10,7 +10,7 @@ from pathlib import Path
application = bottle.default_app() # application used for wsgi mode
pathbase = Path(config.pastedir)
-pygment_formater = pygments.formatters.HtmlFormatter()
+pygment_formater = pygments.formatters.HtmlFormatter(linenos="table")
if not pathbase.exists():
pathbase.mkdir(mode=0o700, parents=True)
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