Handle missing identity file in rncp. Fixes #317.

This commit is contained in:
Mark Qvist 2023-05-31 15:39:55 +02:00
parent 45295c779c
commit a8a7af4b74
2 changed files with 7 additions and 2 deletions

View file

@ -452,7 +452,7 @@ class Identity:
return False
except Exception as e:
RNS.log("Error while loading identity from "+str(path), RNS.LOG_ERROR)
RNS.log("The contained exception was: "+str(e))
RNS.log("The contained exception was: "+str(e), RNS.LOG_ERROR)
def get_salt(self):
return self.hash