diff --git a/flatland/utils/graphics_pil.py b/flatland/utils/graphics_pil.py
index 971e192770ec45ad70e693c56059c6800e563558..462b371627014c6df09105ea3b5af4ac49e7a00b 100644
--- a/flatland/utils/graphics_pil.py
+++ b/flatland/utils/graphics_pil.py
@@ -640,7 +640,7 @@ class PILSVG(PILGL):
             in_direction = out_direction
         pil_zug = self.pil_zug[(in_direction % 4, out_direction % 4, color_idx)]
         self.draw_image_row_col(pil_zug, (row, col), layer=PILGL.AGENT_LAYER)
-        if rail_grid is not None: 
+        if rail_grid is not None:
             if rail_grid[row,col] == 0.0:
                 self.draw_image_row_col(self.scenery_background_white, (row, col), layer=PILGL.RAIL_LAYER)