Traceback (most recent call last):


 "C:\XYZ\UniServerZ\www\klaus\lib\site-packages\flask\app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "C:\XYZ\UniServerZ\www\klaus\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "C:\XYZ\UniServerZ\www\klaus\lib\site-packages\flask\app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "C:\XYZ\UniServerZ\www\klaus\lib\site-packages\flask\_compat.py", line 33, in reraise

raise value


 "C:\XYZ\UniServerZ\www\klaus\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "C:\XYZ\UniServerZ\www\klaus\lib\site-packages\flask\app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "C:\XYZ\UniServerZ\www\klaus\lib\site-packages\flask\views.py", line 84, in view

return self.dispatch_request(*args, **kwargs)


 "C:\XYZ\UniServerZ\www\klaus\lib\site-packages\klaus\views.py", line 121, in dispatch_request

self.make_template_context(repo, rev, path.strip('/'))


 "C:\XYZ\UniServerZ\www\klaus\lib\site-packages\klaus\views.py", line 259, in make_template_context

skip=0,


 "C:\XYZ\UniServerZ\www\klaus\lib\site-packages\klaus\repo.py", line 144, in history

output = subprocess.check_output(cmd, cwd=os.path.abspath(self.path))


 "C:\Program 
s (x86)\Python36-32\lib\subprocess.py", line 336, in check_output

**kwargs).stdout


 "C:\Program 
s (x86)\Python36-32\lib\subprocess.py", line 403, in run

with Popen(*popenargs, **kwargs) as process:


 "C:\Program 
s (x86)\Python36-32\lib\subprocess.py", line 707, in __init__

restore_signals, start_new_session)


 "C:\Program 
s (x86)\Python36-32\lib\subprocess.py", line 966, in _execute_child

args = list2cmdline(args)


 "C:\Program 
s (x86)\Python36-32\lib\subprocess.py", line 461, in list2cmdline

needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):


 "./pydcmbug.py", line 7, in <module>

ds.save_as('bort.dcm')


 "C:\Program 
s\Python37\lib\site-packages\pydicom\dataset.py", line 1810, in save_as

pydicom.dcmwrite(filename, self, write_like_original)


 "C:\Program 
s\Python37\lib\site-packages\pydicom\filewriter.py", line 946, in dcmwrite

write_dataset(fp, get_item(dataset, slice(0x00010000, None)))


 "C:\Program 
s\Python37\lib\site-packages\pydicom\filewriter.py", line 555, in write_dataset

write_data_element(fp, dataset.get_item(tag), dataset_encoding)


 "C:\Program 
s\Python37\lib\contextlib.py", line 130, in __exit__

self.gen.throw(type, value, traceback)


 "C:\Program 
s\Python37\lib\site-packages\pydicom\tag.py", line 37, in tag_in_exception

raise type(ex)(msg)
TypeError: With tag (0040, 0275) got exception: a bytes-like object is required, not 'list'
