Skip to content

Commit fbfad6c

Browse files
committed
show error if web-server port cannot be created
1 parent 54dcd62 commit fbfad6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import time
1717
import hashlib
1818
from itertools import ifilter
19+
from traceback import format_exc
1920

2021
import SimpleHTTPServer
2122
import SocketServer
@@ -65,7 +66,8 @@ def __init__(self):
6566
httpd.serve_forever()
6667
except:
6768
message_error("Cannot create web-server, port is busy")
68-
raise
69+
xbmc.log('%s: %s' % (ADDONID, format_exc()), xbmc.LOGERROR)
70+
#raise
6971

7072

7173
@staticmethod

0 commit comments

Comments
 (0)