-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #3028
Fixes #3028
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3028 +/- ##
===========================================
- Coverage 80.65% 77.61% -3.05%
===========================================
Files 99 99
Lines 13375 13390 +15
===========================================
- Hits 10788 10393 -395
- Misses 2587 2997 +410 ☔ View full report in Codecov by Sentry. |
if not k.startswith("__") and not k.startswith("DEFAULT_") | ||
} | ||
logger.debug(f"Config: {custom_config}") | ||
class CounterpartyServer(threading.Thread): |
Check warning
Code scanning / pylint
Too many instance attributes (12/7). Warning
self.log_stream = log_stream | ||
|
||
# Log all config parameters, sorted by key | ||
# Filter out default values #TODO: these should be set in a different way |
Check warning
Code scanning / pylint
Filter out default values #TODO: these should be set in a different way. Warning
server.join(1) | ||
except KeyboardInterrupt: | ||
logger.warning("Keyboard interrupt received. Shutting down...") | ||
except Exception as e: |
Check warning
Code scanning / pylint
Catching too general exception Exception. Warning
@@ -11,6 +11,7 @@ | |||
from urllib.parse import quote_plus as urlencode | |||
|
|||
import appdirs | |||
import apsw |
Check warning
Code scanning / pylint
Unable to import 'apsw'. Warning
try: | ||
check.asset_conservation(self.db, self.stop_event) | ||
except exceptions.SanityError as e: | ||
logger.error("Asset conservation check failed: %s" % e) |
Check warning
Code scanning / pylint
Use lazy % or .format() formatting in logging functions. Warning
try: | ||
check.asset_conservation(self.db, self.stop_event) | ||
except exceptions.SanityError as e: | ||
logger.error("Asset conservation check failed: %s" % e) |
Check warning
Code scanning / pylint
Formatting a regular string which could be an f-string. Warning
@@ -255,7 +257,7 @@ | |||
self.check_software_version_if_needed() | |||
late_since = None | |||
|
|||
while True: | |||
while True and not self.stop_event.is_set(): |
Check warning
Code scanning / pylint
Boolean condition "True and not self.stop_event.is_set()" may be simplified to "not self.stop_event.is_set()". Warning
properly stopped and that the API port is released.
start()
and stopped withstop()
.