개정판 ce5ca212
issue #1048 : 화면/메뉴/툴바 개발 - Exception Error Message 오타 수정
Change-Id: Ief2cfe7f308281ec82234bd4e8f94902615d95bf
HYTOS/HYTOS/AppDocData.py | ||
---|---|---|
158 | 158 |
symbolCategoryList.append((row[0])) |
159 | 159 |
except Exception as ex: |
160 | 160 |
from App import App |
161 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
161 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
162 | 162 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
163 | 163 |
|
164 | 164 |
return symbolCategoryList |
... | ... | |
179 | 179 |
symbolCategoryList.append((row[0], row[1])) |
180 | 180 |
except Exception as ex: |
181 | 181 |
from App import App |
182 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
182 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
183 | 183 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
184 | 184 |
|
185 | 185 |
return symbolCategoryList |
... | ... | |
209 | 209 |
# Roll back any change if something goes wrong |
210 | 210 |
conn.rollback() |
211 | 211 |
|
212 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
212 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
213 | 213 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
214 | 214 |
finally: |
215 | 215 |
# Close the db connection |
... | ... | |
232 | 232 |
symbolList.append((row[0], row[1], row[2], row[3])) |
233 | 233 |
except Exception as ex: |
234 | 234 |
from App import App |
235 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
235 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
236 | 236 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
237 | 237 |
|
238 | 238 |
return symbolList |
... | ... | |
253 | 253 |
symbolCategoryList.append((row[0], row[1])) |
254 | 254 |
except Exception as ex: |
255 | 255 |
from App import App |
256 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
256 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
257 | 257 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
258 | 258 |
|
259 | 259 |
return symbolCategoryList |
... | ... | |
305 | 305 |
# Roll back any change if something goes wrong |
306 | 306 |
conn.rollback() |
307 | 307 |
|
308 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
308 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
309 | 309 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
310 | 310 |
|
311 | 311 |
''' |
... | ... | |
354 | 354 |
# Roll back any change if something goes wrong |
355 | 355 |
conn.rollback() |
356 | 356 |
|
357 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
357 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
358 | 358 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
359 | 359 |
|
360 | 360 |
return res |
... | ... | |
385 | 385 |
# Roll back any change if something goes wrong |
386 | 386 |
conn.rollback() |
387 | 387 |
|
388 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
388 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
389 | 389 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
390 | 390 |
finally: |
391 | 391 |
# Close the db connection |
... | ... | |
414 | 414 |
# Roll back any change if something goes wrong |
415 | 415 |
conn.rollback() |
416 | 416 |
|
417 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
417 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
418 | 418 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
419 | 419 |
return res |
420 | 420 |
|
... | ... | |
441 | 441 |
# Roll back any change if something goes wrong |
442 | 442 |
conn.rollback() |
443 | 443 |
|
444 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
444 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
445 | 445 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
446 | 446 |
return res |
447 | 447 |
|
... | ... | |
480 | 480 |
# Roll back any change if something goes wrong |
481 | 481 |
conn.rollback() |
482 | 482 |
|
483 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
483 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
484 | 484 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
485 | 485 |
finally: |
486 | 486 |
# Close the db connection |
... | ... | |
522 | 522 |
# Roll back any change if something goes wrong |
523 | 523 |
conn.rollback() |
524 | 524 |
|
525 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
525 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
526 | 526 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
527 | 527 |
finally: |
528 | 528 |
# Close the db connection |
... | ... | |
561 | 561 |
# Roll back any change if something goes wrong |
562 | 562 |
conn.rollback() |
563 | 563 |
|
564 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
564 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
565 | 565 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
566 | 566 |
finally: |
567 | 567 |
# Close the db connection |
... | ... | |
597 | 597 |
# Roll back any change if something goes wrong |
598 | 598 |
conn.rollback() |
599 | 599 |
|
600 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
600 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
601 | 601 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
602 | 602 |
finally: |
603 | 603 |
# Close the db connection |
... | ... | |
620 | 620 |
from App import App |
621 | 621 |
# Roll back any change if something goes wrong |
622 | 622 |
conn.rollback() |
623 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
623 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
624 | 624 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
625 | 625 |
finally: |
626 | 626 |
# Close the db connection |
... | ... | |
646 | 646 |
# Roll back any change if something goes wrong |
647 | 647 |
conn.rollback() |
648 | 648 |
|
649 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
649 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
650 | 650 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
651 | 651 |
|
652 | 652 |
def deleteAppConfigs(self, section, key=None): |
... | ... | |
678 | 678 |
# Roll back any change if something goes wrong |
679 | 679 |
conn.rollback() |
680 | 680 |
|
681 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
681 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
682 | 682 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
683 | 683 |
finally: |
684 | 684 |
# Close the db connection |
... | ... | |
716 | 716 |
except Exception as ex: |
717 | 717 |
from App import App |
718 | 718 |
|
719 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
719 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
720 | 720 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
721 | 721 |
|
722 | 722 |
return ret |
... | ... | |
752 | 752 |
except Exception as ex: |
753 | 753 |
from App import App |
754 | 754 |
|
755 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
755 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
756 | 756 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
757 | 757 |
|
758 | 758 |
return ret |
... | ... | |
791 | 791 |
# Roll back any change if something goes wrong |
792 | 792 |
conn.rollback() |
793 | 793 |
|
794 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
794 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
795 | 795 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
796 | 796 |
|
797 | 797 |
finally: |
... | ... | |
835 | 835 |
# Roll back any change if something goes wrong |
836 | 836 |
conn.rollback() |
837 | 837 |
|
838 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
838 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
839 | 839 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
840 | 840 |
|
841 | 841 |
|
... | ... | |
870 | 870 |
conn.rollback() |
871 | 871 |
from App import App |
872 | 872 |
|
873 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
873 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
874 | 874 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
875 | 875 |
|
876 | 876 |
return res |
... | ... | |
907 | 907 |
conn.rollback() |
908 | 908 |
from App import App |
909 | 909 |
|
910 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
910 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
911 | 911 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
912 | 912 |
|
913 | 913 |
''' |
... | ... | |
939 | 939 |
conn.rollback() |
940 | 940 |
from App import App |
941 | 941 |
|
942 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
942 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
943 | 943 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
944 | 944 |
|
945 | 945 |
''' |
... | ... | |
963 | 963 |
except Exception as ex: |
964 | 964 |
from App import App |
965 | 965 |
|
966 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
966 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
967 | 967 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
968 | 968 |
|
969 | 969 |
return SymbolCategoryList |
... | ... | |
1015 | 1015 |
except Exception as ex: |
1016 | 1016 |
from App import App |
1017 | 1017 |
|
1018 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
1018 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
1019 | 1019 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
1020 | 1020 |
|
1021 | 1021 |
return ComponentList |
... | ... | |
1062 | 1062 |
except Exception as ex: |
1063 | 1063 |
from App import App |
1064 | 1064 |
|
1065 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
1065 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
1066 | 1066 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
1067 | 1067 |
|
1068 | 1068 |
return ComponentList |
... | ... | |
1088 | 1088 |
except Exception as ex: |
1089 | 1089 |
from App import App |
1090 | 1090 |
|
1091 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
1091 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
1092 | 1092 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
1093 | 1093 |
|
1094 | 1094 |
return symbolTypeList |
... | ... | |
1109 | 1109 |
except Exception as ex: |
1110 | 1110 |
from App import App |
1111 | 1111 |
|
1112 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
1112 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
1113 | 1113 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
1114 | 1114 |
finally: |
1115 | 1115 |
conn.close() |
... | ... | |
1140 | 1140 |
except Exception as ex: |
1141 | 1141 |
from App import App |
1142 | 1142 |
|
1143 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
1143 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
1144 | 1144 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
1145 | 1145 |
|
1146 | 1146 |
return res |
... | ... | |
1166 | 1166 |
except Exception as ex: |
1167 | 1167 |
from App import App |
1168 | 1168 |
|
1169 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
|
1169 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
|
|
1170 | 1170 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
1171 | 1171 |
|
1172 | 1172 |
return category |
내보내기 Unified diff