]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
examples: Fix wrong indentation in discover-loop.py
authorBenjamin Drung <benjamin.drung@canonical.com>
Tue, 23 May 2023 10:30:16 +0000 (12:30 +0200)
committerDaniel Wagner <wagi@monom.org>
Wed, 24 May 2023 13:22:56 +0000 (15:22 +0200)
Running `examples/discover-loop.py` fails:

```
  File "examples/discover-loop.py", line 59
    c.disconnect()
    ^
IndentationError: expected an indented block after 'try' statement on line 58
```

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
examples/discover-loop.py

index 09a976becd680f4d30e5bdd3b51b635cf4d03727..8481e821f7d8099b7ee98e313dc040f6f81f4bc7 100644 (file)
@@ -56,7 +56,7 @@ except Exception as e:
     sys.exit(f'Failed to discover: {e}')
 
 try:
-c.disconnect()
+    c.disconnect()
 except Exception as e:
     sys.exit(f'Failed to disconnect: {e}')