개정판 0a72bba1
license
Change-Id: I8d099a8e870cc1f222280572dd0bc1e4ae6e2724
DTI_PID/DTI_PID/License.py | ||
---|---|---|
82 | 82 |
""" check license key with computer name """ |
83 | 83 |
from AppDocData import AppDocData |
84 | 84 |
from datetime import datetime, timedelta |
85 |
import jwt |
|
85 |
import jwt, socket
|
|
86 | 86 |
import requests |
87 | 87 |
|
88 | 88 |
internal = False |
... | ... | |
140 | 140 |
message = f"error occurred({repr(ex)}) in {sys.exc_info()[-1].tb_frame.f_code.co_filename}:" \ |
141 | 141 |
f"{sys.exc_info()[-1].tb_lineno}" |
142 | 142 |
QMessageBox.critical(None, 'Error', message) |
143 |
except socket.gaierror: |
|
144 |
message = f"Please check network" |
|
145 |
QMessageBox.critical(None, 'Error', message) |
|
143 | 146 |
except Exception as ex: |
144 | 147 |
message = f"error occurred({repr(ex)}) in {sys.exc_info()[-1].tb_frame.f_code.co_filename}:" \ |
145 | 148 |
f"{sys.exc_info()[-1].tb_lineno}" |
내보내기 Unified diff