mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 02:08:12 +08:00
Allow for platforms not supporting resource module
This commit is contained in:
@@ -10,3 +10,8 @@ try:
|
||||
from croniter import croniter
|
||||
except ImportError:
|
||||
croniter = None
|
||||
|
||||
try:
|
||||
import resource
|
||||
except ModuleNotFoundError:
|
||||
resource = None
|
||||
|
||||
Reference in New Issue
Block a user