Minor bug in copyfile.py

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here's the culprit of the stacktrace:

  File "/usr/lib/python2.5/site-packages/func/overlord/modules/copyfile.py", line 11, in send
    sys.stderr.write("Unable to open file: %s: %s\n" % (self.options.filename, e))
NameError: global name 'sys' is not defined


It only occurs if the file is not readable (in my case, permissions issue).  However, the error should be logged properly rather than blowing up.  I suspect a simple "import sys" is missing.  This is in func 0.24 so it may have been fixed in the trunk.

Phil

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux