Allow for platforms not supporting resource module

This commit is contained in:
Ilan Steemers
2020-07-05 17:45:07 +02:00
parent 83b8b7c0d7
commit b16878f36f
3 changed files with 14 additions and 5 deletions
+5
View File
@@ -10,3 +10,8 @@ try:
from croniter import croniter
except ImportError:
croniter = None
try:
import resource
except ModuleNotFoundError:
resource = None