Broken rust library should not crash the application

This commit is contained in:
Wiktor Mazur
2019-11-11 17:24:32 +01:00
parent b19b8b2d2d
commit fd0ca3dcd7
2 changed files with 14 additions and 2 deletions
+13 -1
View File
@@ -1,6 +1,18 @@
import os
import aostats
try:
import aostats
except:
class aostats:
@staticmethod
def initialize(_):
return InitializationResult.NetworkInterfaceListMissing
@staticmethod
def stats(_):
return []
@staticmethod
def get_players_in_party():
return []
from .config import config
from .number import Number
+1 -1
View File
@@ -1,7 +1,7 @@
import os
import requests
_version = "0.6.3"
_version = "0.6.4"
latest_url = "https://github.com/mazurwiktor/albion-online-stats/releases/latest"