diff options
author | Aleš Smodiš <aless@guru.si> | 2015-09-14 14:49:54 +0200 |
---|---|---|
committer | Aleš Smodiš <aless@guru.si> | 2015-09-14 14:49:54 +0200 |
commit | afdb3c0b28715b3d9a0982e4e0504a0cbcf11e70 (patch) | |
tree | d052125c6fc4fb4803b10dd20d3c24fc3a2711f9 /server/problems.py | |
parent | d82013c214021d6e5480d18105760fa70cfc708b (diff) |
Reimplemented communication with the client side.
* Implemented a node web server supporting asynchronous websocket and long-polling communication with clients.
* Implemented TCP communication between python middleware and node web server.
Diffstat (limited to 'server/problems.py')
-rw-r--r-- | server/problems.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/problems.py b/server/problems.py index 02f0307..1c87345 100644 --- a/server/problems.py +++ b/server/problems.py @@ -19,6 +19,9 @@ def load_module(fullname): d = os.path.join(_path_prefix, *parts[:-1]) ff = importlib.machinery.FileFinder(d, (importlib.machinery.SourceFileLoader, ['.py'])) spec = ff.find_spec(fullname) + if spec is None: + print('ERROR: there is no problem module {0}'.format(fullname)) + return None mod = type(sys)(fullname) mod.__loader__ = spec.loader mod.__package__ = spec.parent |