소스 검색

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():