From 486fb5825bc6e9296ac5a504fe951312da813d20 Mon Sep 17 00:00:00 2001 From: thelittlefireman Date: Sat, 29 Jul 2017 22:51:36 +0200 Subject: [PATCH] fix bad python impl --- src/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.py b/src/app.py index 13372f4..3c7aaca 100644 --- a/src/app.py +++ b/src/app.py @@ -4,6 +4,7 @@ import json import logging import os import subprocess +import errno from src import CONFIG_FILE, ROOT, CHROME_DRIVER from src import log @@ -14,7 +15,7 @@ logger = logging.getLogger('app') def symlink_force(target, link_name): try: os.symlink(target, link_name) - except OSError, e: + except OSError as e: if e.errno == errno.EEXIST: os.remove(link_name) os.symlink(target, link_name)