Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pygmt/clib/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,10 +725,10 @@ def _check_dtype_and_dim(self, array, ndim):
try:
# Try to convert any unknown numpy data types to np.datetime64
array = np.asarray(array, dtype=np.datetime64)
except ValueError:
except ValueError as e:
raise GMTInvalidInput(
"Unsupported numpy data type '{}'.".format(array.dtype.type)
)
f"Unsupported numpy data type '{array.dtype.type}'."
) from e
return self[DTYPES[array.dtype.type]]

def put_vector(self, dataset, column, vector):
Expand Down