浏览代码

Added back old main function with error checking

cmerchant 6 年之前
父节点
当前提交
4a5f282e3b
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      labelme/main.py

+ 4 - 5
labelme/main.py

@@ -16,11 +16,10 @@ from labelme.utils import newIcon
 
 
 def main():
-    _main()
-    # try:
-    #     _main()
-    # except Exception as e:
-    #     logger.error(e)
+    try:
+        _main()
+    except Exception as e:
+        logger.error(e)
 
 
 def _main():