From 8a4f3b7642a9ed1b7f89141a373623cd3d276499 Mon Sep 17 00:00:00 2001 From: Michael Krane Date: Thu, 28 Apr 2016 22:59:47 +0200 Subject: [PATCH] Code clean Up --- service/port.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/service/port.py b/service/port.py index d330515c8..718ee3fe4 100644 --- a/service/port.py +++ b/service/port.py @@ -213,10 +213,9 @@ class Port(object): Ship(sMkt.getItem(id)) string = string[string.index(str(id)):] break - except Exception, e: - continue - pass - string = string[0: (string.index("::") + 2)] + except: + pass + string = string[:string.index("::") + 2] info = string.split(":") f = Fit()