DG fem for 1D advection equation - TypeError with dolfin-dg

Please read Read before posting: How do I get my question answered? and, in particular, format your code properly with “```”.

@nate may be able to help, but first of all you should edit your post in a way that makes it legible.