From d91c3a6b0c6a3b6c3f333eb91c7390f4ca6dc4a8 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 22 Mar 2018 12:10:40 +0200 Subject: [PATCH] Removed unnecessary comment and percent formatting in logger.error --- src/class_singleWorker.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/class_singleWorker.py b/src/class_singleWorker.py index 462bf2b0..45535430 100644 --- a/src/class_singleWorker.py +++ b/src/class_singleWorker.py @@ -260,7 +260,7 @@ class singleWorker(threading.Thread, StoppableThread): logger.error( 'Error within doPOWForMyV2Pubkey. Could not read' ' the keys from the keys.dat file for a requested' - ' address. %s\n' % err + ' address. %s\n', err ) return @@ -332,7 +332,7 @@ class singleWorker(threading.Thread, StoppableThread): logger.error( 'Error within sendOutOrStoreMyV3Pubkey. Could not read' ' the keys from the keys.dat file for a requested' - ' address. %s\n' % err + ' address. %s\n', err ) return @@ -398,7 +398,7 @@ class singleWorker(threading.Thread, StoppableThread): logger.error( 'Error within sendOutOrStoreMyV4Pubkey. Could not read' ' the keys from the keys.dat file for a requested' - ' address. %s\n' % err + ' address. %s\n', err ) return @@ -454,7 +454,7 @@ class singleWorker(threading.Thread, StoppableThread): except Exception as err: logger.error( 'Error: Couldn\'t add the lastpubkeysendtime' - ' to the keys.dat file. Error message: %s' % err + ' to the keys.dat file. Error message: %s', err ) def sendBroadcast(self): @@ -930,10 +930,10 @@ class singleWorker(threading.Thread, StoppableThread): defaults.networkDefaultPayloadLengthExtraBytes logger.debug( 'Using averageProofOfWorkNonceTrialsPerByte: %s' - ' and payloadLengthExtraBytes: %s.' % ( - requiredAverageProofOfWorkNonceTrialsPerByte, - requiredPayloadLengthExtraBytes - )) + ' and payloadLengthExtraBytes: %s.', + requiredAverageProofOfWorkNonceTrialsPerByte, + requiredPayloadLengthExtraBytes + ) queues.UISignalQueue.put(( 'updateSentItemStatusByAckdata', ( ackdata, @@ -1013,11 +1013,11 @@ class singleWorker(threading.Thread, StoppableThread): " the keys.dat file. Could not encrypt" " message. %1" ).arg(l10n.formatTimestamp())) - )) # log or show the address maybe? + )) logger.error( 'Error within sendMsg. Could not read the keys' - ' from the keys.dat file for our own address. %s\n' - % err) + ' from the keys.dat file for our own address. %s\n', + err) continue privEncryptionKeyHex = hexlify(shared.decodeWalletImportFormat( privEncryptionKeyBase58))