mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-23 07:01:39 +00:00
Make Cocoa use the new FTP report-sender
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
- (NSString *)url2path:(NSString *)url;
|
||||
- (void)createPool;
|
||||
- (void)destroyPool;
|
||||
- (void)reportCrash:(NSString *)crashReport;
|
||||
- (BOOL)reportCrash:(NSString *)crashReport;
|
||||
- (void)log:(NSString *)s;
|
||||
- (NSDictionary *)readExifData:(NSString *)imagePath;
|
||||
@end
|
||||
@@ -143,9 +143,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)reportCrash:(NSString *)crashReport
|
||||
- (BOOL)reportCrash:(NSString *)crashReport
|
||||
{
|
||||
[HSErrorReportWindow showErrorReportWithContent:crashReport];
|
||||
return [HSErrorReportWindow showErrorReportWithContent:crashReport];
|
||||
}
|
||||
|
||||
- (void)log:(NSString *)s
|
||||
|
||||
@@ -12,6 +12,7 @@ import traceback
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from hscommon.error_report import send_error_report
|
||||
from .CocoaProxy import CocoaProxy
|
||||
|
||||
proxy = CocoaProxy()
|
||||
@@ -97,7 +98,8 @@ def report_crash(type, value, tb):
|
||||
except IndexError:
|
||||
# This can happen if something went wrong with the grep (permission errors?)
|
||||
pass
|
||||
proxy.reportCrash_(s)
|
||||
if proxy.reportCrash_(s):
|
||||
send_error_report(s)
|
||||
|
||||
def install_exception_hook():
|
||||
sys.excepthook = report_crash
|
||||
|
||||
Reference in New Issue
Block a user