@scrypted/server 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @scrypted/server might be problematic. Click here for more details.
- package/package.json +1 -1
- package/python/plugin-remote.py +7 -1
package/package.json
CHANGED
package/python/plugin-remote.py
CHANGED
@@ -11,6 +11,7 @@ import shutil
|
|
11
11
|
import subprocess
|
12
12
|
import threading
|
13
13
|
import time
|
14
|
+
import traceback
|
14
15
|
import zipfile
|
15
16
|
from asyncio.events import AbstractEventLoop
|
16
17
|
from asyncio.futures import Future
|
@@ -339,7 +340,12 @@ class PluginRemote:
|
|
339
340
|
self.mediaManager = MediaManager(await self.api.getMediaManager())
|
340
341
|
sdk_init(zip, self, self.systemManager,
|
341
342
|
self.deviceManager, self.mediaManager)
|
342
|
-
|
343
|
+
try:
|
344
|
+
from main import create_scrypted_plugin # type: ignore
|
345
|
+
except:
|
346
|
+
print('plugin failed to start')
|
347
|
+
traceback.print_exc()
|
348
|
+
raise
|
343
349
|
return await rpc.maybe_await(create_scrypted_plugin())
|
344
350
|
|
345
351
|
async def setSystemState(self, state):
|