From 1ad26b0c3983c65bff8ddd78529dbc73de8c68ae Mon Sep 17 00:00:00 2001 From: Frederic Fortier Date: Wed, 7 Feb 2018 19:29:38 -0500 Subject: [PATCH] BLD: trying to format a line --- catalyst/marketplace/marketplace.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/catalyst/marketplace/marketplace.py b/catalyst/marketplace/marketplace.py index 7086b903..b9f05151 100644 --- a/catalyst/marketplace/marketplace.py +++ b/catalyst/marketplace/marketplace.py @@ -219,11 +219,15 @@ class Marketplace: ).call() if subscribed[5]: - print('\nYou are already subscribed to the "{}" dataset.\n' - 'Your subscription started on {} UTC, and is valid until ' - '{} UTC.'.format( - dataset, pd.to_datetime(subscribed[3], unit='s', utc=True), - pd.to_datetime(subscribed[4], unit='s', utc=True))) + print( + '\nYou are already subscribed to the "{}" dataset.\n' + 'Your subscription started on {} UTC, and is valid until ' + '{} UTC.'.format( + dataset, + pd.to_datetime(subscribed[3], unit='s', utc=True), + pd.to_datetime(subscribed[4], unit='s', utc=True) + ) + ) return print('\nThe price for a monthly subscription to this dataset is' @@ -604,7 +608,7 @@ class Marketplace: tx['gas'] = min(int(tx['gas'] * 1.5), 4700000) signed_tx = self.sign_transaction(address, tx) - + try: tx_hash = '0x{}'.format( bin_hex(self.web3.eth.sendRawTransaction(signed_tx))