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
1 changed files with 3 additions and 0 deletions

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):