Skip to content

Commit

Permalink
fixes #902
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian authored Sep 4, 2020
1 parent bd9acd6 commit 7a375b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ophyd/signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ def _get_with_timeout(self, pv, timeout, connection_timeout, as_string, form):
except TimeoutError as err:
raise ConnectionTimeoutError(
f"Failed to connect to {pv.pvname} "
f"within {connection_timeout:.2} sec") from err
f"within {connection_timeout:.2f} sec") from err
# Pyepics returns None when a read request times out. Raise a
# TimeoutError on its behalf.
self.control_layer_log.info(
Expand All @@ -1057,7 +1057,7 @@ def _get_with_timeout(self, pv, timeout, connection_timeout, as_string, form):
if info is None:
raise ReadTimeoutError(
f"Failed to read {pv.pvname} "
f"within {timeout:.2} sec")
f"within {timeout:.2f} sec")

return info

Expand Down

0 comments on commit 7a375b1

Please sign in to comment.