Skip to content

Commit

Permalink
rtslib: fix missing ':' after else statement
Browse files Browse the repository at this point in the history
Signed-off-by: Maurizio Lombardi <[email protected]>
  • Loading branch information
maurizio-lombardi committed Apr 26, 2022
1 parent e1b08dd commit 21084ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtslib/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _set_dbroot(self):
if not os.path.isdir(self._preferred_dbroot):
raise RTSLibError("Cannot set dbroot to {}. Please check if this directory exists."
.format(self._preferred_dbroot))
else
else:
# Writing to dbroot_path after devices have been registered will make the kernel emit this error:
# db_root: cannot be changed: target devices registered
from warnings import warn
Expand Down

0 comments on commit 21084ca

Please sign in to comment.