diff --git a/build-scripts/check_samba.py b/build-scripts/check_samba.py
index 6473ca37ad97f7a3273fcdfe9ed4a18292ca5331..9dd1f4c04998614706333723dad8b4a733c3037a 100644
--- a/build-scripts/check_samba.py
+++ b/build-scripts/check_samba.py
@@ -32,7 +32,8 @@ if __name__ == '__main__':
             print("Connection attempt %d failed: %s" % (attempt, str(e)))
             attempt += 1
             if attempt == total_attempts:
-                raise Exception("Timeout while waiting for SMB server to come online")
+                raise Exception("Timeout while waiting for SMB server to come "
+                                "online")
 
             print("Sleeping for 5 seconds before next attempt")
             time.sleep(5)