mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-25 07:21:36 +00:00
Change package_url_json to a constant
This commit is contained in:
@@ -145,9 +145,9 @@ def check_update():
|
|||||||
import importlib
|
import importlib
|
||||||
from sys import platform
|
from sys import platform
|
||||||
|
|
||||||
package_url_json = "https://pypi.org/pypi/whatsapp-chat-exporter/json"
|
PACKAGE_JSON = "https://pypi.org/pypi/whatsapp-chat-exporter/json"
|
||||||
try:
|
try:
|
||||||
raw = urllib.request.urlopen(package_url_json)
|
raw = urllib.request.urlopen(PACKAGE_JSON)
|
||||||
except Exception:
|
except Exception:
|
||||||
print("Failed to check for updates.")
|
print("Failed to check for updates.")
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user