Traceback (most recent call last):


 "/judge/dmoj/judge.py", line 267, in log_internal_error

self.packet_manager.internal_error_packet(strip_ansi(message))


 "/judge/dmoj/packet.py", line 330, in internal_error_packet

log.debug('Internal error: %d', self.judge.current_submission.id)
AttributeError: 'NoneType' object has no attribute 'id'

Traceback (most recent call last):


 "x.py", line 6, in <module>

print(dvc.api.get_url("some_dir"))


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/api.py", line 37, in get_url

hash_info = _repo.repo_tree.get_hash(path_info)


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/tree/base.py", line 263, in get_hash

hash_info = self.get_dir_hash(path_info, **kwargs)


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/tree/repo.py", line 379, in get_dir_hash

return dvc_tree.get_dir_hash(path_info, **kwargs)


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/tree/dvc.py", line 242, in get_dir_hash

self._fetch_dir(out, **kwargs)


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/tree/dvc.py", line 146, in _fetch_dir

if self.fetch and out.changed_cache(filter_info=filter_info):


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/output/base.py", line 197, in changed_cache

self.hash_info, filter_info=filter_info


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/cache/base.py", line 412, in changed_cache

hash_info, path_info=path_info, filter_info=filter_info


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/cache/base.py", line 404, in _changed_dir_cache

if self.changed_cache_file(entry_hash):


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/cache/base.py", line 366, in changed_cache_file

actual = self.tree.get_hash(cache_info)


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/tree/base.py", line 242, in get_hash

hash_ = self.state.get(path_info)


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/state.py", line 408, in get

existing_record = self.get_state_record_for_inode(actual_inode)


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/state.py", line 352, in get_state_record_for_inode

self._execute(cmd, (self._to_sqlite(inode),))


 "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/state.py", line 133, in _execute

return self.cursor.execute(cmd, parameters)
AttributeError: 'NoneType' object has no attribute 'execute'
