From 4888138dab55e0b916bef86ebb409a31399980e0 Mon Sep 17 00:00:00 2001 From: daspk04 Date: Mon, 8 Jul 2024 21:01:57 +0700 Subject: [PATCH] [STYLE] Format the style --- pint/pint_convert.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pint/pint_convert.py b/pint/pint_convert.py index 6c9b38c64..b66eeb0d3 100644 --- a/pint/pint_convert.py +++ b/pint/pint_convert.py @@ -80,7 +80,9 @@ def _set(key: str, value): try: import uncertainties except ImportError: - raise Exception('Failed to import uncertainties library!\n Please install uncertainies') + raise Exception( + "Failed to import uncertainties library!\n Please install uncertainies" + ) # Measured constants subject to correlation # R_i: Rydberg constant @@ -111,7 +113,9 @@ def _set(key: str, value): [R_i, g_e, m_u, m_e, m_p, m_n], corr ) except AttributeError: - raise Exception('Correlation cannot be calculated!\n Please install numpy package') + raise Exception( + "Correlation cannot be calculated!\n Please install numpy package" + ) else: R_i = uncertainties.ufloat(*R_i) g_e = uncertainties.ufloat(*g_e)