fix: Don't try to map entity to unc path if entity is not set.

This commit is contained in:
Håkon Solbjørg 2018-12-27 19:04:27 +01:00
parent 4fded99f98
commit c454edd546
No known key found for this signature in database
GPG key ID: 9B505DA70D6C2DBC

View file

@ -255,6 +255,9 @@ class Heartbeat(object):
if self._file_exists():
return
if not self.entity:
return
self.args.local_file = self._to_unc_path(self.entity)
def _to_unc_path(self, filepath):