Logging and modules issues fixes

This commit is contained in:
lakshyacis 2020-01-20 19:57:58 +05:30
parent cde97bbc0e
commit 26d75d99fd
No known key found for this signature in database
GPG Key ID: D2C539C8EC63E9EB
2 changed files with 3 additions and 3 deletions

View File

@ -371,7 +371,7 @@ class Main(object):
elif state.kivy: elif state.kivy:
config.remove_option('bitmessagesettings', 'dontconnect') config.remove_option('bitmessagesettings', 'dontconnect')
# pylint: disable=no-member, import-error # pylint: disable=no-member, import-error, no-name-in-module
from bitmessagekivy.mpybit import NavigateApp from bitmessagekivy.mpybit import NavigateApp
state.kivyapp = NavigateApp() state.kivyapp = NavigateApp()
state.kivyapp.run() state.kivyapp.run()

View File

@ -91,8 +91,8 @@ class UDPSocket(BMProto): # pylint: disable=too-many-instance-attributes
if remoteport is False: if remoteport is False:
return True return True
logger.debug( logger.debug(
"received peer discovery from {}:{} (port {}):", "received peer discovery from {}:{} (port {}):".format(
self.destination.host, self.destination.port, remoteport) self.destination.host, self.destination.port, remoteport))
if self.local: if self.local:
state.discoveredPeers[Peer(self.destination.host, remoteport)] = \ state.discoveredPeers[Peer(self.destination.host, remoteport)] = \
time.time() time.time()