1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Changed the error report so it brings the user to Github directly

Making error reporting too easy results in too much context-less
tracebacks which demand attention and, in the end, aren't of much use.

Requiring the user to report errors on Github will reduce the number of
reports, but hopefully make these reports have better context.
This commit is contained in:
Virgil Dupras
2014-03-29 17:42:23 -04:00
parent b76820ebde
commit 10d1363334
4 changed files with 25 additions and 52 deletions

View File

@@ -63,6 +63,9 @@ except ImportError:
try:
from PyQt5.QtCore import QUrl, QStandardPaths
from PyQt5.QtGui import QDesktopServices
def _open_url(url):
QDesktopServices.openUrl(QUrl(url))
def _open_path(path):
url = QUrl.fromLocalFile(str(path))
QDesktopServices.openUrl(url)

View File

@@ -1,27 +0,0 @@
# Created By: Virgil Dupras
# Created On: 2014-01-26
# Copyright 2014 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import ftplib
import io
import time
import threading
import logging
def send_error_report(text):
def do():
try:
conn = ftplib.FTP('drop.hardcoded.net')
conn.login()
conn.cwd('/drop')
textfp = io.BytesIO(text.encode('utf-8'))
cmd = 'STOR report%d.txt' % time.time()
conn.storbinary(cmd, textfp)
except Exception as e:
logging.warning("Couldn't send error report: %s", e)
threading.Thread(target=do).start()