diff options
-rwxr-xr-x | pasteme.py | 2 | ||||
-rwxr-xr-x | scripts/pastit.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |