|
I've got a Python function that I've added throughout a script I want to run autonomously. Its purpose is to print various log information to a txt file. What would the bests way to log any errors that might occur to the same file? code:
|
# ¿ Mar 1, 2017 17:26 |
|
|
# ¿ May 8, 2024 04:55 |
|
a witch posted:Look into the logging module, it has a decent tutorial. Awesome thanks. Another question - I have a script running that uploads files to dropbox. If the internet goes down mid upload, I get a MaxRetryError. Trying the following doesn't work though code:
|
# ¿ Mar 1, 2017 20:21 |
|
Eela6 posted:What do you want to happen? I want the function to return false. However, with that code I'm getting "NameError: global name 'MaxRetryError' is not defined".
|
# ¿ Mar 1, 2017 20:25 |
|
Zero Gravitas posted:Anyone got any recommendations for a method of creating animations (avi/mpeg/mp4) from a bunch of .png files? I've inherited a collection of code that does this with cv2 (I think) but its awfully put together and throws lots of errors with the l/w/h parameters. Virtualdub is pretty awesome. Just select fps, compression method, and any other settings and you get a nice video.
|
# ¿ Mar 5, 2017 01:14 |
|
I have some Flask code:code:
Edit - Is this the best way? code:
huhu fucked around with this message at 03:14 on Mar 7, 2017 |
# ¿ Mar 7, 2017 03:10 |