Skip to content

Commit

Permalink
fix: lint with black
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrennand committed Aug 25, 2024
1 parent be7c948 commit d22c660
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion speeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""

from influxdb_client.client.write_api import SYNCHRONOUS
from influxdb_client import InfluxDBClient
from loguru import logger
Expand Down Expand Up @@ -93,7 +94,9 @@
json_result = json.loads(result.stdout)
# Check if the JSON result is empty
if not json_result:
raise json.decoder.JSONDecodeError("JSON result is empty.", json_result, 0)
raise json.decoder.JSONDecodeError(
"JSON result is empty.", json_result, 0
)
except json.decoder.JSONDecodeError as err:
logger.error(
f"Failed to parse JSON results for server ID: {server_id}.\nError: {err}"
Expand Down

0 comments on commit d22c660

Please sign in to comment.