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