]> git-server-git.apps.pok.os.sepia.ceph.com Git - remoto.git/commitdiff
Initialize exc_line with full error text
authorPaulius Šukys <paul.sukys@gmail.com>
Thu, 26 Apr 2018 15:35:46 +0000 (17:35 +0200)
committerPaulius Šukys <paul.sukys@gmail.com>
Thu, 26 Apr 2018 15:35:46 +0000 (17:35 +0200)
remoto/connection.py

index 462febee7d3d81a22a8dad79ae29a8ca531ac742..ed5a7ef34523eb8c6f0a2b7902fd536a39a2bca4 100644 (file)
@@ -119,6 +119,7 @@ class ModuleExecute(object):
                 # Error will come as a string of a traceback, remove everything
                 # up to the actual exception since we do get garbage otherwise
                 # that points to non-existent lines in the compiled code
+                exc_line = str(error)
                 for tb_line in reversed(str(error).split('\n')):
                     if tb_line:
                         exc_line = tb_line