Blender nonetype Error

Hi guys, was just wondering if anyone could help me with this issue I’m having. Recently whenever I run blender on command line to render, the PC gets forced to render with CPU instead of GPU and this line makes me wonder if theres something that isnt set up correctly:

So far when rendering normally blender seems to work fine but this makes me wonder if GPU is being ignored when rendering on command line.

Does this help, with cycles you explicitly define the device to use.