mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-11 14:52:32 +02:00
avoid crash on reconciliation of relays don't react
This commit is contained in:
@@ -122,6 +122,7 @@ class DicoverContentDBUpdateScheduler(DVMTaskInterface):
|
||||
return 1
|
||||
|
||||
async def sync_db(self):
|
||||
try:
|
||||
relaylimits = RelayLimits.disable()
|
||||
opts = (Options().wait_for_send(False).send_timeout(timedelta(seconds=self.dvm_config.RELAY_LONG_TIMEOUT))).relay_limits(relaylimits)
|
||||
sk = SecretKey.from_hex(self.dvm_config.PRIVATE_KEY)
|
||||
@@ -153,7 +154,8 @@ class DicoverContentDBUpdateScheduler(DVMTaskInterface):
|
||||
if self.dvm_config.LOGLEVEL.value >= LogLevel.DEBUG.value:
|
||||
print(
|
||||
"[" + self.dvm_config.IDENTIFIER + "] Done Syncing Notes of the last " + str(self.db_since) + " seconds..")
|
||||
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
# We build an example here that we can call by either calling this file directly from the main directory,
|
||||
# or by adding it to our playground. You can call the example and adjust it to your needs or redefine it in the
|
||||
|
2
setup.py
2
setup.py
@@ -1,6 +1,6 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
VERSION = '0.8.5'
|
||||
VERSION = '0.8.6'
|
||||
DESCRIPTION = 'A framework to build and run Nostr NIP90 Data Vending Machines'
|
||||
LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')
|
||||
|
||||
|
Reference in New Issue
Block a user