import logging
from tic import command
from tic.utils import error
+from tic.config import configmgr
app = Flask(__name__)
except ValueError as ve:
logger.error(ve)
resp = makeresponse(str(ve), ve)
-# except Exception as ex:
-# logger.error(ex)
-# resp = makeresponse(str(ex), ex)
+ except Exception as ex:
+ logger.error(ex)
+ resp = makeresponse(str(ex), ex)
return resp
print(url_for('index'))
print(url_for('analysis'))
print(url_for('exports'))
+ if isinstance(port_num, (str, unicode)):
+ port_num = int(port_num)
app.run(host='0.0.0.0', threaded=True, port=port_num)